LinqUtilsCreateConstantBoolPredicate Method |
Creates a constant false predicate. This predicate results in a @param=0 predicate, where the param has a value of 1.
Namespace:
SD.LLBLGen.Pro.LinqSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax public static IPredicate CreateConstantBoolPredicate(
bool result,
ITemplateGroupSpecificCreator frameworkElementCreator
)
Public Shared Function CreateConstantBoolPredicate (
result As Boolean,
frameworkElementCreator As ITemplateGroupSpecificCreator
) As IPredicate
Parameters
- result
- Type: SystemBoolean
the result the predicate should deliver - frameworkElementCreator
- Type: SD.LLBLGen.Pro.LinqSupportClassesITemplateGroupSpecificCreator
The framework element creator.
Return Value
Type:
IPredicate
1==0 comparing predicate if the result should be false, a 1==1 comparing predicate if the result should be true. Uses
FieldCompareRangePredicate to accomplish this, which will produce 1=1 and 1=0 predicates based on an empty set of values and negate.
See Also