2024-11-28 16:29:00 +05:00
|
|
|
|
using Persistence.Models.Requests;
|
2024-11-12 13:36:09 +05:00
|
|
|
|
|
|
|
|
|
namespace Persistence.Repositories;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Интерфейс по работе с табличными данными
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ITableDataRepository<TDto, TRequest>
|
|
|
|
|
where TDto : class, new()
|
2024-11-28 16:29:00 +05:00
|
|
|
|
where TRequest : Request
|
2024-11-12 13:36:09 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить страницу списка объектов
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request">параметры фильтрации</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-11-21 17:02:36 +05:00
|
|
|
|
Task<IEnumerable<TDto>> Get(TRequest request, CancellationToken token);
|
2024-11-12 13:36:09 +05:00
|
|
|
|
}
|