IOT Dash
|
Public Member Functions | |
Task< IReadOnlyList< TEntity > > | GetAllAsync () |
Task< TEntity?> | GetByKeyAsync (TKey key) |
Task | CreateAsync (TEntity entityToCreate) |
Task< bool > | DeleteByKeyAsync (TKey entityId) |
![]() | |
Task< bool > | SaveChangesAsync () |
Represents a contract for a store object which provides CRUD operations on TEntity indexed by TKey .
TEntity | |
TKey |
TEntity | : | class |
Task IotDash.Services.IModelStore< TEntity, TKey >.CreateAsync | ( | TEntity | entityToCreate | ) |
Create an entity in the database.
entityToCreate | A new entity to create. |
Task< bool > IotDash.Services.IModelStore< TEntity, TKey >.DeleteByKeyAsync | ( | TKey | entityId | ) |
Deletes an entity from the databse.
entityId | The identificator of the entity to delete. |
Task< IReadOnlyList< TEntity > > IotDash.Services.IModelStore< TEntity, TKey >.GetAllAsync | ( | ) |
Retrieve all entities from the database.
Task< TEntity?> IotDash.Services.IModelStore< TEntity, TKey >.GetByKeyAsync | ( | TKey | key | ) |
Get an entity from database by key .
key |
null
if not found.