Api/Berizco.Repository/Repositories/Base/Contracts/IReadRepository.cs

12 lines
403 B
C#

namespace Brizco.Repository.Repositories.Base.Contracts
{
public interface IReadRepository<T> where T : class, IApiEntity
{
DbSet<T> Entities { get; }
IQueryable<T> Table { get; }
IQueryable<T> TableNoTracking { get; }
T GetById(params object[] ids);
ValueTask<T> GetByIdAsync(CancellationToken cancellationToken, params object[] ids);
}
}