Class Paging
OptimaJet.Workflow.Core.Persistence.Paging
Specifies a page of results to retrieve from persistence.
Namespace: OptimaJet.Workflow.Core.Persistence
public class PagingConstructors
public Paging(int pageIndex, int pageSize) #Initializes paging settings for the requested page.
Parameters
Name
Type
Description
pageIndexInt32The 1-based index of the page to retrieve.
pageSizeInt32The number of results requested per page.
Properties
public int PageIndex { get; set; } #Gets or sets the 1-based index of the page to retrieve.
public int PageSize { get; set; } #Gets or sets the number of results requested per page.
Methods
public static Paging Create(int pageIndex, int pageSize) #Creates a Paging configured for the requested page.
Parameters
Name
Type
Description
pageIndexInt32The 1-based index of the page to retrieve.
pageSizeInt32The number of results requested per page.
Returns
Type
Description
Pagingpublic int SkipCount() #Calculates the number of results to skip from Paging.PageIndex and Paging.PageSize.
Returns
Type
Description
Int32The number of results to skip. A Paging.PageIndex value less than 1 is treated as the first page.