-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathPaged.cs
42 lines (37 loc) · 1006 Bytes
/
Paged.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) Mondol. All rights reserved.
//
// Author: frank
// Email: [email protected]
// Created: 2017-01-22
//
using System.Collections.Generic;
namespace Mondol.DapperPoco
{
/// <summary>
/// Holds the results of a paged request.
/// </summary>
/// <typeparam name="T">The type of Poco in the returned result set</typeparam>
public class Paged<T> where T : new()
{
/// <summary>
/// 当前页码
/// </summary>
public int CurrentPage { get; set; }
/// <summary>
/// 总页数
/// </summary>
public int TotalPages { get; set; }
/// <summary>
/// 总记录数
/// </summary>
public long TotalItems { get; set; }
/// <summary>
/// 每页记录数
/// </summary>
public int ItemsPerPage { get; set; }
/// <summary>
/// 当前页记录列表
/// </summary>
public List<T> Items { get; set; }
}
}