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
Constructors
| 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<
T> superset,
longpageIndex,
longpageSize) |
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. |