From bb39b97d1eb404af416108cd49d0b3ca5e8da6ee Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 10 Sep 2024 11:21:21 +0200 Subject: [PATCH] refactor: Umbenennung der ReadAll-Methode in ReadOnly im CRUDRepository --- DigitalData.Core.Infrastructure/CRUDRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DigitalData.Core.Infrastructure/CRUDRepository.cs b/DigitalData.Core.Infrastructure/CRUDRepository.cs index f1688d9..1ac6b45 100644 --- a/DigitalData.Core.Infrastructure/CRUDRepository.cs +++ b/DigitalData.Core.Infrastructure/CRUDRepository.cs @@ -57,13 +57,13 @@ namespace DigitalData.Core.Infrastructure /// The result is not tracked by the context, which improves performance when you only need to read data without making modifications. /// /// An containing all entities of type . - protected virtual IQueryable ReadAll() => _dbSet.AsNoTracking(); + protected virtual IQueryable ReadOnly() => _dbSet.AsNoTracking(); /// /// Asynchronously retrieves all entities of type TEntity. /// /// An enumerable of all entities in the database. - public virtual async Task> ReadAllAsync() => await ReadAll().ToListAsync(); + public virtual async Task> ReadAllAsync() => await ReadOnly().ToListAsync(); /// /// Asynchronously updates an existing entity in the repository.