Interface IReadOnlyBasicRepository<TEntity>
Assembly: Volo.Abp.Ddd.Domain.dll
Syntax
public interface IReadOnlyBasicRepository<TEntity> : IRepository where TEntity : class, IEntity
Type Parameters
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
|
GetPagedListAsync(Int32, Int32, String, Boolean, CancellationToken)
Declaration
Task<List<TEntity>> GetPagedListAsync(int skipCount, int maxResultCount, string sorting, bool includeDetails = false, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.Int32 |
skipCount |
|
System.Int32 |
maxResultCount |
|
System.String |
sorting |
|
System.Boolean |
includeDetails |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<List<TEntity>> |
|
Extension Methods