C# Class Signum.Entities.DynamicQuery.Pagination.Paginate

Inheritance: Pagination
ファイルを表示 Open project: signumsoftware/framework Class Usage Examples

Public Properties

Property Type Description
DefaultElementsPerPage int

Public Methods

Method Description
EndElementIndex ( int rows ) : int
GetElementsPerPage ( ) : int?
GetMode ( ) : PaginationMode
Paginate ( int elementsPerPage, int currentPage = 1 ) : System
StartElementIndex ( ) : int
TotalPages ( int totalElements ) : int
WithCurrentPage ( int newPage ) : Paginate

Method Details

EndElementIndex() public method

public EndElementIndex ( int rows ) : int
rows int
return int

GetElementsPerPage() public method

public GetElementsPerPage ( ) : int?
return int?

GetMode() public method

public GetMode ( ) : PaginationMode
return PaginationMode

Paginate() public method

public Paginate ( int elementsPerPage, int currentPage = 1 ) : System
elementsPerPage int
currentPage int
return System

StartElementIndex() public method

public StartElementIndex ( ) : int
return int

TotalPages() public method

public TotalPages ( int totalElements ) : int
totalElements int
return int

WithCurrentPage() public method

public WithCurrentPage ( int newPage ) : Paginate
newPage int
return Paginate

Property Details

DefaultElementsPerPage public_oe static_oe property

public static int DefaultElementsPerPage
return int