persistence/DD.Persistence.Models/PaginationContainer.cs
Roman Efremov d8497ce46a
All checks were successful
Unit tests / test (push) Successful in 53s
Merge branch 'master' into TimestampedValuesRepository
2025-01-20 09:55:21 +05:00

36 lines
954 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace DD.Persistence.Models.Common;
/// <summary>
/// Контейнер для поддержки постраничного просмотра таблиц
/// </summary>
/// <typeparam name="T"></typeparam>
public class PaginationContainer<T>
{
/// <summary>
/// конструктор
/// </summary>
public PaginationContainer()
{
Items = [];
}
/// <summary>
/// Кол-во записей пропущенных с начала таблицы в запросе от api
/// </summary>
public int Skip { get; set; }
/// <summary>
/// Кол-во записей в запросе от api
/// </summary>
public int Take { get; set; }
/// <summary>
/// Кол-во записей всего в таблице
/// </summary>
public int Count { get; set; }
/// <summary>
/// Данные
/// </summary>
public IEnumerable<T> Items { get; set; }
}