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.

47 lines
1.3 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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