Skip to main content

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

NameTypeDescription
PagedList(IQueryable<T> superset, long pageIndex, long pageSize)voidInitializes a new instance of the Korzh.EasyQuery.Services.PagedList`1 class.
PagedList(IEnumerable<T> superset, long pageIndex, long pageSize)voidInitializes a new instance of the Korzh.EasyQuery.Services.PagedList`1 class.

Fields

NameTypeDescription
subsetList<T>Current subset of the whole list according to specified PageIndex and PageSize

Properties

NameTypeDescription
PageCountlongGets the total number of pages in result.
PageIndexlongGets the index of the page (started from 1).
PageSizelongGets the size of the page.
TotalRecordslongGets the total number of records in result.

Methods

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