コード例 #1
0
 public Page(IPagedList <TData> pagedList)
 {
     Data = pagedList;
     PaginationContext = new PaginationContext(
         page: pagedList.PageNumber,
         size: pagedList.PageSize,
         pages: pagedList.PageCount,
         totalRows: pagedList.TotalItemCount);
 }
コード例 #2
0
 public Page(IEnumerable <TData> data, PaginationContext context)
 {
     Data = data ?? throw new ArgumentNullException(nameof(data));
     PaginationContext = context ?? throw new ArgumentNullException(nameof(context));
 }