Click or drag to resize

QuerySpecExtensionMethodsLimitTQuery Method

Sets the limit of the query, the number of elements to retrieve. 0 means all elements (no limit). A number greater than 0 means the limit specifies the number of elements to retrieve.

Namespace:  SD.LLBLGen.Pro.QuerySpec
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public static TQuery Limit<TQuery>(
	this TQuery query,
	int limit
)
where TQuery : QuerySpec

Parameters

query
Type: TQuery
The query.
limit
Type: SystemInt32
The limit.

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
Page() will overwrite this value
See Also