You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB
C#

12 months ago
namespace DS.Module.Core;
/// <summary>
/// 分页查询条件信息
/// </summary>
public class PageCondition
{
/// <summary>
/// 初始化一个 默认参数第1页每页20排序条件为空的分页查询条件信息类 的新实例
/// </summary>
public PageCondition()
: this(1, 20)
{
}
/// <summary>
/// 初始化一个 指定页索引与页大小的分页查询条件信息类 的新实例
/// </summary>
/// <param name="pageIndex"> 页索引 </param>
/// <param name="pageSize"> 页大小 </param>
public PageCondition(int pageIndex, int pageSize)
{
PageIndex = pageIndex;
PageSize = pageSize;
SortConditions = new SortCondition[] { };
}
/// <summary>
/// 获取或设置 页索引
/// </summary>
public int PageIndex { get; set; }
/// <summary>
/// 获取或设置 页大小
/// </summary>
public int PageSize { get; set; }
/// <summary>
/// 获取或设置 排序条件组
/// </summary>
public SortCondition[] SortConditions { get; set; }
}