feat: Füge CountAsync Methode zum ICRUDRepository Interface hinzu

This commit is contained in:
Developer 02 2024-09-11 10:07:20 +02:00
parent a6d554fbc2
commit adfb0daf7d

View File

@ -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();
}
}