LinqUtilsProduceBooleanProducerLambdaFromBooleanTypedExpression Method |
Produces the boolean producer lambda from boolean typed expression (which can be a filter or an LLBLGen expression with boolean operator)
boolean expression in projection means it has to be wrapped inside a scalarquery expression which should be wrapped inside a field which then
should be the parameter of a dbfunction call which represents a CASE statement. This db function call's result has to be processed by
a lambda which checks if the dbfunction call's case statement returned 1 or 0 and returns true or false.
Namespace:
SD.LLBLGen.Pro.LinqSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax public static LambdaExpression ProduceBooleanProducerLambdaFromBooleanTypedExpression(
IExpression booleanTypedExpression,
FunctionMappingsContainer functionMappings,
ITemplateGroupSpecificCreator frameworkElementCreator,
out Dictionary<int, Expression> boolProducerArguments
)
Public Shared Function ProduceBooleanProducerLambdaFromBooleanTypedExpression (
booleanTypedExpression As IExpression,
functionMappings As FunctionMappingsContainer,
frameworkElementCreator As ITemplateGroupSpecificCreator,
<OutAttribute> ByRef boolProducerArguments As Dictionary(Of Integer, Expression)
) As LambdaExpression
Parameters
- booleanTypedExpression
- Type: SD.LLBLGen.Pro.ORMSupportClassesIExpression
The boolean typed expression. - functionMappings
- Type: SD.LLBLGen.Pro.LinqSupportClassesFunctionMappingsContainer
The function mappings. - frameworkElementCreator
- Type: SD.LLBLGen.Pro.LinqSupportClassesITemplateGroupSpecificCreator
The framework element creator. - boolProducerArguments
- Type: System.Collections.GenericDictionaryInt32, Expression
The bool producer arguments.
Return Value
Type:
LambdaExpression
Lambda which can be used to obtain a boolean value from a resultset from a projectionfetch.
See Also