Interface IReadOnlyBasicRepository<TEntity>
Namespace: Volo.Abp.Domain.Repositories
Assembly: Volo.Abp.Ddd.Domain.dll
Syntax
public interface IReadOnlyBasicRepository<TEntity> : IRepository where TEntity : class, IEntity
Type Parameters
Name | Description |
---|---|
TEntity |
Methods
GetCountAsync(CancellationToken)
Gets total count of all entities.
Declaration
Task<long> GetCountAsync(CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<System.Int64> |
GetListAsync(Boolean, CancellationToken)
Gets a list of all the entities.
Declaration
Task<List<TEntity>> GetListAsync(bool includeDetails = false, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | includeDetails | Set true to include all children of this entity |
CancellationToken | cancellationToken | A System.Threading.CancellationToken to observe while waiting for the task to complete. |
Returns
Type | Description |
---|---|
Task<List<TEntity>> | Entity |