![]() |
Nabû 1.0.0
Standardizing .NET developments with abstractions
|
Inheritance diagram for Nabu.Data.IDao:Public Member Functions | |
| TReturn | SelectMethod< T, TSelect, TReturn > (ISpecification< T > spec, Expression< Func< T, TSelect > > mapper, Expression< Func< IQueryable< TSelect >, TReturn > > method) |
| Execute method on ReadRequest result as IQueryable. | |
| Task< T > | AddAsync< T > (T entity, CancellationToken cancellationToken=default) |
| Add an entity. | |
| Task | AddAsync< T > (IEnumerable< T > entities, CancellationToken cancellationToken=default) |
| Add entities. | |
| Task< bool > | AnyAsync< T > (ISpecification< T > spec, CancellationToken cancellationToken=default) |
| Check if at least one entity match specification. | |
| Task< int > | CountAsync< T > (ISpecification< T > spec, CancellationToken cancellationToken=default) |
| count entities that match the specification in storage | |
| Task | DeleteAsync< T > (ISpecification< T > spec, CancellationToken cancellationToken=default) |
| Remove all entities that match the specification. | |
| Task | DeleteByIdAsync< T > (string id, CancellationToken cancellationToken=default) |
| Remove the entity by id. | |
| Task | DeleteByIdAsync< T > (IEnumerable< string > ids, CancellationToken cancellationToken=default) |
| Remove entities by ids. | |
| Task< T?> | FirstOrDefaultAsync< T > (ISpecification< T > spec, CancellationToken cancellationToken=default) |
| returns the first entity that matches the specification | |
| Task< T?> | GetByIdAsync< T > (string id, CancellationToken cancellationToken=default) |
| return the entity with specified Id | |
| IIncludeEvaluator< T > | GetIncludeEvaluator< T > () |
| Task< IReadOnlyList< T > > | ListAllAsync< T > (CancellationToken cancellationToken=default) |
| return all entities from storage | |
| Task< IReadOnlyList< T > > | ListAsync< T > (ISpecification< T > spec, CancellationToken cancellationToken=default) |
| Return all entities that match the specification. | |
| Task< IReadOnlyList< TSelect > > | SelectAllAsync< T, TSelect > (Expression< Func< T, TSelect > > mapper, CancellationToken cancellationToken=default) |
| return list of TSelect mapped from all entities from storage | |
| Task< IReadOnlyList< TSelect > > | SelectAsync< T, TSelect > (ISpecification< T > spec, Expression< Func< T, TSelect > > mapper, CancellationToken cancellationToken=default) |
| return list of TSelect mapped from all entities that match the specification | |
| IAsyncEnumerable< TSelect > | SelectAsAsyncEnumerable< T, TSelect > (ISpecification< T > spec, Expression< Func< T, TSelect > > mapper, CancellationToken cancellationToken=default) |
| return list of TSelect mapped from all entities that match the specification | |
| Task< TSelect?> | SelectByIdAsync< T, TSelect > (string id, Expression< Func< T, TSelect > > mapper, CancellationToken cancellationToken=default) |
| return TSelect mapped from entity with specified Id | |
| Task< TSelect?> | SelectFirstOrDefaultAsync< T, TSelect > (ISpecification< T > spec, Expression< Func< T, TSelect > > mapper, CancellationToken cancellationToken=default) |
| return TSelect mapped from first entity that match specification | |
| Task< TSelect?> | MinAsync< T, TSelect > (ISpecification< T > spec, Expression< Func< T, TSelect?> > fieldSelector, CancellationToken cancellationToken=default) |
| return min value of the selected field | |
| Task< TSelect?> | MaxAsync< T, TSelect > (ISpecification< T > spec, Expression< Func< T, TSelect?> > fieldSelector, CancellationToken cancellationToken=default) |
| return max value of the selected field | |
| Task< IReadOnlyList< TSelect > > | SelectGroupBy< T, TKey, TSelect > (ISpecification< T > spec, Expression< Func< T, TKey > > groupBy, Expression< Func< IGrouping< TKey, T >, TSelect > > mapper, CancellationToken cancellationToken=default) |
| return list of TSelect mapped from all entities that match the specification grouped by specified expression | |
| Task | TransactionBegin (CancellationToken cancellationToken=default) |
| Begin transaction. | |
| Task | TransactionCommit (CancellationToken cancellationToken=default) |
| Commit current transaction. | |
| Task | TransactionMakeSavePoint (string name, CancellationToken cancellationToken=default) |
| Make named save point in transaction. | |
| Task | TransactionRemoveSavePoint (string name, CancellationToken cancellationToken=default) |
| Remove named save point in transaction. | |
| Task | TransactionRollback (CancellationToken cancellationToken=default) |
| Rollback current transaction. | |
| Task | TransactionRollbackToSavePoint (string name, CancellationToken cancellationToken=default) |
| Rollback transaction to specified savepoint. | |
| Task | UpdateAsync< T > (T entity, CancellationToken cancellationToken=default) |
| update entity | |
| Task | UpdateAsync< T > (IEnumerable< T > entities, CancellationToken cancellationToken=default) |
| update entities | |
| Task | UpdateAsync< T > (ISpecification< T > spec, Action< T > updater, CancellationToken cancellationToken=default) |
| Apply updater to entities that match specification. | |
| Task< IReadOnlyList< TFinal > > | EvaluateJoinQuery< T1, T2, TKey, TSelect, TFinal > (IJoinQuery< T1, T2, TKey, TSelect, TFinal > joinQuery, CancellationToken cancellationToken=default) |
| Execute read query with multiple Joins. | |
| Task Nabu.Data.IDao.AddAsync< T > | ( | IEnumerable< T > | entities, |
| CancellationToken | cancellationToken = default ) |
Add entities.
| entities | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< T > Nabu.Data.IDao.AddAsync< T > | ( | T | entity, |
| CancellationToken | cancellationToken = default ) |
Add an entity.
| entity | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< bool > Nabu.Data.IDao.AnyAsync< T > | ( | ISpecification< T > | spec, |
| CancellationToken | cancellationToken = default ) |
Check if at least one entity match specification.
| spec | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< int > Nabu.Data.IDao.CountAsync< T > | ( | ISpecification< T > | spec, |
| CancellationToken | cancellationToken = default ) |
count entities that match the specification in storage
| spec | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task Nabu.Data.IDao.DeleteAsync< T > | ( | ISpecification< T > | spec, |
| CancellationToken | cancellationToken = default ) |
Remove all entities that match the specification.
| spec | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task Nabu.Data.IDao.DeleteByIdAsync< T > | ( | IEnumerable< string > | ids, |
| CancellationToken | cancellationToken = default ) |
Remove entities by ids.
| ids | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task Nabu.Data.IDao.DeleteByIdAsync< T > | ( | string | id, |
| CancellationToken | cancellationToken = default ) |
Remove the entity by id.
| id | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< IReadOnlyList< TFinal > > Nabu.Data.IDao.EvaluateJoinQuery< T1, T2, TKey, TSelect, TFinal > | ( | IJoinQuery< T1, T2, TKey, TSelect, TFinal > | joinQuery, |
| CancellationToken | cancellationToken = default ) |
Execute read query with multiple Joins.
| joinQuery | |
| cancellationToken |
| T1 | |
| T2 | |
| TKey | |
| TSelect | |
| TFinal |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T1 | : | class | |
| T1 | : | IEntity | |
| T1 | : | new() | |
| T2 | : | class | |
| T2 | : | IEntity | |
| T2 | : | new() |
| Task< T?> Nabu.Data.IDao.FirstOrDefaultAsync< T > | ( | ISpecification< T > | spec, |
| CancellationToken | cancellationToken = default ) |
returns the first entity that matches the specification
| spec | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< T?> Nabu.Data.IDao.GetByIdAsync< T > | ( | string | id, |
| CancellationToken | cancellationToken = default ) |
return the entity with specified Id
| id | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| IIncludeEvaluator< T > Nabu.Data.IDao.GetIncludeEvaluator< T > | ( | ) |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >.
| T | : | class | |
| T | : | IEntity |
| Task< IReadOnlyList< T > > Nabu.Data.IDao.ListAllAsync< T > | ( | CancellationToken | cancellationToken = default | ) |
return all entities from storage
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< IReadOnlyList< T > > Nabu.Data.IDao.ListAsync< T > | ( | ISpecification< T > | spec, |
| CancellationToken | cancellationToken = default ) |
Return all entities that match the specification.
| spec | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< TSelect?> Nabu.Data.IDao.MaxAsync< T, TSelect > | ( | ISpecification< T > | spec, |
| Expression< Func< T, TSelect?> > | fieldSelector, | ||
| CancellationToken | cancellationToken = default ) |
return max value of the selected field
| spec | |
| fieldSelector | |
| cancellationToken |
| T | |
| TSelect |
Implemented in Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< TSelect?> Nabu.Data.IDao.MinAsync< T, TSelect > | ( | ISpecification< T > | spec, |
| Expression< Func< T, TSelect?> > | fieldSelector, | ||
| CancellationToken | cancellationToken = default ) |
return min value of the selected field
| spec | |
| fieldSelector | |
| cancellationToken |
| T | |
| TSelect |
Implemented in Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< IReadOnlyList< TSelect > > Nabu.Data.IDao.SelectAllAsync< T, TSelect > | ( | Expression< Func< T, TSelect > > | mapper, |
| CancellationToken | cancellationToken = default ) |
return list of TSelect mapped from all entities from storage
| mapper | |
| cancellationToken |
| T | |
| TSelect |
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| IAsyncEnumerable< TSelect > Nabu.Data.IDao.SelectAsAsyncEnumerable< T, TSelect > | ( | ISpecification< T > | spec, |
| Expression< Func< T, TSelect > > | mapper, | ||
| CancellationToken | cancellationToken = default ) |
return list of TSelect mapped from all entities that match the specification
| spec | |
| mapper | |
| cancellationToken |
| T | |
| TSelect |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< IReadOnlyList< TSelect > > Nabu.Data.IDao.SelectAsync< T, TSelect > | ( | ISpecification< T > | spec, |
| Expression< Func< T, TSelect > > | mapper, | ||
| CancellationToken | cancellationToken = default ) |
return list of TSelect mapped from all entities that match the specification
| spec | |
| mapper | |
| cancellationToken |
| T | |
| TSelect |
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< TSelect?> Nabu.Data.IDao.SelectByIdAsync< T, TSelect > | ( | string | id, |
| Expression< Func< T, TSelect > > | mapper, | ||
| CancellationToken | cancellationToken = default ) |
return TSelect mapped from entity with specified Id
| id | |
| mapper | |
| cancellationToken |
| T | |
| TSelect |
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< TSelect?> Nabu.Data.IDao.SelectFirstOrDefaultAsync< T, TSelect > | ( | ISpecification< T > | spec, |
| Expression< Func< T, TSelect > > | mapper, | ||
| CancellationToken | cancellationToken = default ) |
return TSelect mapped from first entity that match specification
| spec | |
| mapper | |
| cancellationToken |
| T | |
| TSelect |
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task< IReadOnlyList< TSelect > > Nabu.Data.IDao.SelectGroupBy< T, TKey, TSelect > | ( | ISpecification< T > | spec, |
| Expression< Func< T, TKey > > | groupBy, | ||
| Expression< Func< IGrouping< TKey, T >, TSelect > > | mapper, | ||
| CancellationToken | cancellationToken = default ) |
return list of TSelect mapped from all entities that match the specification grouped by specified expression
| spec | |
| groupBy | |
| mapper | |
| cancellationToken |
| T | |
| TKey | |
| TSelect |
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| TReturn Nabu.Data.IDao.SelectMethod< T, TSelect, TReturn > | ( | ISpecification< T > | spec, |
| Expression< Func< T, TSelect > > | mapper, | ||
| Expression< Func< IQueryable< TSelect >, TReturn > > | method ) |
Execute method on ReadRequest result as IQueryable.
| spec | |
| mapper | |
| method |
| T | |
| TSelect | |
| TReturn |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task Nabu.Data.IDao.TransactionBegin | ( | CancellationToken | cancellationToken = default | ) |
Begin transaction.
| cancellationToken |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| Task Nabu.Data.IDao.TransactionCommit | ( | CancellationToken | cancellationToken = default | ) |
Commit current transaction.
| cancellationToken |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| Task Nabu.Data.IDao.TransactionMakeSavePoint | ( | string | name, |
| CancellationToken | cancellationToken = default ) |
Make named save point in transaction.
| name | |
| cancellationToken |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| Task Nabu.Data.IDao.TransactionRemoveSavePoint | ( | string | name, |
| CancellationToken | cancellationToken = default ) |
Remove named save point in transaction.
| name | |
| cancellationToken |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| Task Nabu.Data.IDao.TransactionRollback | ( | CancellationToken | cancellationToken = default | ) |
Rollback current transaction.
| cancellationToken |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| Task Nabu.Data.IDao.TransactionRollbackToSavePoint | ( | string | name, |
| CancellationToken | cancellationToken = default ) |
Rollback transaction to specified savepoint.
| name | |
| cancellationToken |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| Task Nabu.Data.IDao.UpdateAsync< T > | ( | IEnumerable< T > | entities, |
| CancellationToken | cancellationToken = default ) |
update entities
| entities | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task Nabu.Data.IDao.UpdateAsync< T > | ( | ISpecification< T > | spec, |
| Action< T > | updater, | ||
| CancellationToken | cancellationToken = default ) |
Apply updater to entities that match specification.
| spec | |
| updater | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |
| Task Nabu.Data.IDao.UpdateAsync< T > | ( | T | entity, |
| CancellationToken | cancellationToken = default ) |
update entity
| entity | |
| cancellationToken |
| T |
Implemented in Nabu.Data.EntityFramework.AbstractEntityFrameworkDao< TDbContext >, and Nabu.Data.LiteDb.AbstractLiteDbDao< TDbContext >.
| T | : | class | |
| T | : | IEntity | |
| T | : | new() |