You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.2 KiB
58 lines
1.2 KiB
4 years ago
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询选项。
|
||
|
/// </summary>
|
||
|
[Serializable]
|
||
|
public class QueryOptions
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 查询名称。
|
||
|
/// </summary>
|
||
|
public string Name { get; set; }
|
||
|
/// <summary>
|
||
|
/// 排序方式。
|
||
|
/// </summary>
|
||
|
public string SortBy { get; set; }
|
||
|
/// <summary>
|
||
|
/// 排序字段。
|
||
|
/// </summary>
|
||
|
public string OrderBy { get; set; }
|
||
|
/// <summary>
|
||
|
/// 分页页数。
|
||
|
/// </summary>
|
||
|
public int PageNumber { get; set; }
|
||
|
/// <summary>
|
||
|
/// 分页大小。
|
||
|
/// </summary>
|
||
|
public int PageSize { get; set; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 分页结果集。
|
||
|
/// </summary>
|
||
|
/// <typeparam name="T"></typeparam>
|
||
|
[Serializable]
|
||
|
public class PagedSet<T>
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 数据集。
|
||
|
/// </summary>
|
||
|
public IEnumerable<T> DbSet { get; set; }
|
||
|
/// <summary>
|
||
|
/// 分页页数。
|
||
|
/// </summary>
|
||
|
public int PageNumber { get; set; }
|
||
|
/// <summary>
|
||
|
/// 分页大小。
|
||
|
/// </summary>
|
||
|
public int PageSize { get; set; }
|
||
|
/// <summary>
|
||
|
/// 总共多少页。
|
||
|
/// </summary>
|
||
|
public int Pages { get; set; }
|
||
|
}
|
||
|
|