PagedList<T> class

Default implementation of IPagedList interface

public class Korzh.EasyQuery.Services.PagedList<T>
    : IPagedList<T>, IEnumerable<T>, IEnumerable, IPaging

Package: Korzh.EasyQuery (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.dll


| Name | Type | Description | | --- | --- | --- | | PagedList(IQueryable<T> superset, long pageIndex, long pageSize) | void | Initializes a new instance of the Korzh.EasyQuery.Services.PagedList1](api-reference/korzh-easyquery/korzh-easyquery-services-namespace/pagedlist-t--class) class. | | PagedList(IEnumerable&lt;T&gt; superset,longpageIndex,longpageSize) |void| Initializes a new instance of the [Korzh.EasyQuery.Services.PagedList1 class. |


Name Type Description
subset List<T> Current subset of the whole list according to specified PageIndex and PageSize


Name Type Description
PageCount long Gets the total number of pages in result.
PageIndex long Gets the index of the page (started from 1).
PageSize long Gets the size of the page.
TotalRecords long Gets the total number of records in result.


Name Type Description
GetEnumerator() IEnumerator<T> Returns an enumerator that iterates through the collection.