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.