13 lines
364 B
C#
13 lines
364 B
C#
|
using Core.Entities;
|
||
|
using Core.Specifications;
|
||
|
|
||
|
namespace Core.Interfaces
|
||
|
{
|
||
|
public interface IGenericRepository<T> where T : BaseEntity
|
||
|
{
|
||
|
Task<T> GetByIdAsync(int id);
|
||
|
Task<IReadOnlyList<T>> ListAllAsync();
|
||
|
Task<T> GetEntityWithSpec(ISpecification<T> spec);
|
||
|
Task<IReadOnlyList<T>> ListAsync(ISpecification<T> spec);
|
||
|
}
|
||
|
}
|