namespace NFine.Code { /// /// 分页信息 /// public class Pagination { /// /// 每页行数 /// public int rows { get; set; } /// /// 当前页 /// public int page { get; set; } /// /// 排序列 /// public string sidx { get; set; } /// /// 排序类型 /// public string sord { get; set; } /// /// 总记录数 /// public int records { get; set; } /// /// 总页数 /// public int total { get { if (records > 0) { return records % this.rows == 0 ? records / this.rows : records / this.rows + 1; } else { return 0; } } } } }