using System.Collections.Generic;
using System.Linq;
namespace APT.Infrastructure.Core
{
///
/// 统一格式的分页结果集
///
///
public class PagedResultDto where T : class
{
#region ctor.
///
/// 统一格式的分页结果集
///
public PagedResultDto()
{
}
///
/// 统一格式的分页结果集
///
/// 总数
/// 结果集
public PagedResultDto(int totalCount, IQueryable items)
{
this.TotalCount = totalCount;
this.Items = items;
}
#endregion
#region properties
///
/// 总数
///
public int TotalCount { get; set; }
///
/// 数据集合
///
public IEnumerable Items { get; set; }
#endregion
}
}