Click or drag to resize

ScalarQueryExtensionMethodsForceRowLimit Method

Forces the row limit on the scalar query expression specified. A row limit is only required if the query potentially returns more values and it's used in a scope where it's required to return 1 element at most.

Namespace:  SD.LLBLGen.Pro.QuerySpec
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax
public static ScalarQueryExpression ForceRowLimit(
	this ScalarQueryExpression toAlter
)

Parameters

toAlter
Type: SD.LLBLGen.Pro.ORMSupportClassesScalarQueryExpression
To alter.

Return Value

Type: ScalarQueryExpression

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ScalarQueryExpression. 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).
See Also