All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 9m48s
12 lines
284 B
C#
12 lines
284 B
C#
namespace Models.Interfaces
|
|
{
|
|
public interface IGenericRepository<T> where T : class
|
|
{
|
|
Task<T?> GetByIdAsync(int id);
|
|
Task<IEnumerable<T>> GetAllAsync();
|
|
Task AddAsync(T entity);
|
|
void Update(T entity);
|
|
void Delete(T entity);
|
|
}
|
|
}
|