Skip to content

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

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.
NameTypeDescription
subsetList<T>Current subset of the whole list according to specified PageIndex and PageSize
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.
NameTypeDescription
GetEnumerator()IEnumerator<T>Returns an enumerator that iterates through the collection.