From adfb0daf7d3e17a2e1a862e0bc1564880a594c26 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 11 Sep 2024 10:07:20 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20F=C3=BCge=20`CountAsync`=20Methode=20zu?= =?UTF-8?q?m=20`ICRUDRepository`=20Interface=20hinzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Infrastructure/ICRUDRepository.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DigitalData.Core.Abstractions/Infrastructure/ICRUDRepository.cs b/DigitalData.Core.Abstractions/Infrastructure/ICRUDRepository.cs index 15e022f..3acf834 100644 --- a/DigitalData.Core.Abstractions/Infrastructure/ICRUDRepository.cs +++ b/DigitalData.Core.Abstractions/Infrastructure/ICRUDRepository.cs @@ -40,5 +40,11 @@ /// The entity to delete. /// If entity is deleted, return true othwerwise return false. Task DeleteAsync(TEntity entity); + + /// + /// Asynchronously counts all entities in the repository. + /// + /// The total number of entities in the repository. + Task CountAsync(); } } \ No newline at end of file