Class PaginationHelper
This class contains methods for pagination support.
Inherited Members
Namespace: DataWeb.Structure
Assembly: DataWeb.Core.dll
Syntax
public static class PaginationHelper
Methods
GetPaginationInfo(int, long, long)
Gets the pagination info for the provided list data.
Declaration
public static PaginationInfo GetPaginationInfo(int pageSize, long pageIndex, long itemCount)
Parameters
Type | Name | Description |
---|---|---|
int | pageSize | The size of the page. |
long | pageIndex | The index of the current page. |
long | itemCount | The total count of the items. |
Returns
Type | Description |
---|---|
PaginationInfo | A computed pagination info |