namespace CloudGaming.Shared.Models.PagingViews; /// /// 分页视图模型 /// public class PagingView { /// /// 列信息 /// public List Columns { get; set; } = []; /// /// 转换后数据 /// public List> DataSource { get; set; } = []; /// /// 总数 /// public long Total { get; set; } /// /// 总页数 /// public long PageCount { get; set; } /// /// 一页显示多少条 /// public int Size { get; set; } /// /// 页码 /// public int Page { get; set; } /// /// 初始化 /// /// /// public PagingView(int page, int size) { Page = page; Size = size; } /// /// 创建 PagingView 对象 /// /// /// /// public static PagingView Create(int page, int size) { var pagingView = new PagingView(page, size); return pagingView; } /// /// 仓储主表实体类型 /// private Type? _mainTableEntityType; /// /// 设置主表实体类型 /// /// public void SetMainTableEntityType(Type? value) => _mainTableEntityType = value; /// /// 主表实体类型 /// [JsonIgnore] public Type? MainTableEntityType => _mainTableEntityType; }