as no tracking get methods
This commit is contained in:
parent
0ee41aebef
commit
8790e7c7cf
6 changed files with 27 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue