Click or drag to resize
QuerySpecExtensionMethodsPageTQuery Method
Sets the paging data: the page size and the page number to retrieve, where 0 for one of them means no paging. Valid page sizes and page numbers are 1 or greater.

Namespace:  SD.LLBLGen.Pro.QuerySpec
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public static TQuery Page<TQuery>(
	this TQuery query,
	int pageNumber,
	int pageSize
)
where TQuery : QuerySpec

Parameters

query
Type: TQuery
The query.
pageNumber
Type: SystemInt32
The page number.
pageSize
Type: SystemInt32
Size of the page.

Type Parameters

TQuery
The type of the query.

Return Value

Type: TQuery

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Setting Page data by calling this page makes a Limit be ignored.
See Also