feat: Füge CountAsync Methode zum ICRUDRepository Interface hinzu
This commit is contained in:
parent
a6d554fbc2
commit
adfb0daf7d
@ -40,5 +40,11 @@
|
||||
/// <param name="entity">The entity to delete.</param>
|
||||
/// <returns>If entity is deleted, return true othwerwise return false.</returns>
|
||||
Task<bool> DeleteAsync(TEntity entity);
|
||||
|
||||
/// <summary>
|
||||
/// Asynchronously counts all entities in the repository.
|
||||
/// </summary>
|
||||
/// <returns>The total number of entities in the repository.</returns>
|
||||
Task<int> CountAsync();
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user