pagedlist-t--class
Default implementation of IPagedList
interface
public class Korzh.EasyQuery.Services.PagedList<T>
: IPagedList<T>, IEnumerable<T>, IEnumerable, IPaging
Assembly: Korzh.EasyQuery.dll
Constructors
Name | Type | Description |
---|---|---|
PagedList(IQueryable <T > superset, long pageIndex, long pageSize) | void | Initializes a new instance of the Korzh.EasyQuery.Services.PagedList`1 class. |
PagedList(IEnumerable <T > superset, long pageIndex, long pageSize) | void | Initializes a new instance of the Korzh.EasyQuery.Services.PagedList`1 class. |
Fields
Name | Type | Description |
---|---|---|
subset | List <T > | Current subset of the whole list according to specified PageIndex and PageSize |
Properties
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. |
Methods
Name | Type | Description |
---|---|---|
GetEnumerator() | IEnumerator <T > | Returns an enumerator that iterates through the collection. |