idk something about efcore

This commit is contained in:
Вячеслав 2025-03-25 22:05:28 +05:00
parent 751b08e805
commit 6732613466
8 changed files with 103 additions and 0 deletions

View file

@ -0,0 +1,10 @@
namespace SurveyBackend.Core.Repositories;
public interface IGenericRepository<T> where T : class
{
Task<T?> GetByIdAsync(int id);
Task<IEnumerable<T>> GetAllAsync();
Task AddAsync(T entity);
Task UpdateAsync(T entity);
Task DeleteAsync(T entity);
}