Returns the page items. Actually, the implementation just sets the protected fields pageSize and currentPage, gets an ISession from SessionFactoryHolder and calls InternalExecute(ISession) in order to execute the custom query and fetch only the page items.

Namespace: Castle.MonoRail.ActiveRecordSupport.Pagination
Assembly:  Castle.MonoRail.ActiveRecordSupport (in Castle.MonoRail.ActiveRecordSupport.dll)
Version: 1.0.3.0

Syntax

C#
public virtual IEnumerable Paginate(
	int pageSize,
	int currentPage
)

Parameters

pageSize
Int32
The page size
currentPage
Int32
The current page

Return Value

The page items

See Also