Click or drag to resize
RepositoryE, KGetCountAsync Method
Gets a count of all entities in the database.

Namespace: LiteRepository
Assembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntax
C#
public virtual Task<long> GetCountAsync()

Return Value

Type: TaskInt64
A task representing the asynchronous operation.
Examples

For getting a count of entities in database:

C#
var entities = await repository.GetAllAsync(entity);
See Also