as no tracking get methods

This commit is contained in:
Вячеслав 2025-05-31 00:50:39 +05:00
parent 0ee41aebef
commit 8790e7c7cf
6 changed files with 27 additions and 1 deletions

View file

@ -5,8 +5,9 @@ namespace SurveyLib.Core.Repositories;
public interface IGenericRepository<T> where T : class
{
Task<T?> GetByIdAsync(int id);
Task<T?> GetByIdAsNoTrackingAsync(int id);
Task<IEnumerable<T>> GetAllAsync();
Task AddAsync(T entity);
Task UpdateAsync(T entity);
Task DeleteAsync(int id);
}
}