13 lines
No EOL
341 B
C#
13 lines
No EOL
341 B
C#
using SurveyLib.Core.Models;
|
|
|
|
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);
|
|
} |