| RepositoryE, KGetCountAsync Method |
Gets a count of all entities in the database.
Namespace: LiteRepositoryAssembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntaxpublic virtual Task<long> GetCountAsync()
Return Value
Type:
TaskInt64A task representing the asynchronous operation.
ExamplesFor getting a count of entities in database:
var entities = await repository.GetAllAsync(entity);
See Also