Click or drag to resize

PredicateExtensionMethodsAsBooleanValue Method

Returns the predicate wrapped in a CASE WHEN (predicate) THEN 1 ELSE 0 END construct (as a function call expression) so the predicate can be used as a real boolean value in other places than the Where clause.

Namespace:  SD.LLBLGen.Pro.QuerySpec
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public static FunctionMappingExpression AsBooleanValue(
	this IPredicate predicate
)

Parameters

predicate
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
The predicate.

Return Value

Type: FunctionMappingExpression

Usage Note

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