LinqUtilsCoerceSetReferenceExpressionToEntityFieldExpressionIfRequired Method |
Coerces the set reference expression to entity field expression if required.
Namespace:
SD.LLBLGen.Pro.LinqSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax public static Expression CoerceSetReferenceExpressionToEntityFieldExpressionIfRequired(
Expression target,
Expression toCoerce,
IElementCreatorCore generatedCodeElementCreator
)
Public Shared Function CoerceSetReferenceExpressionToEntityFieldExpressionIfRequired (
target As Expression,
toCoerce As Expression,
generatedCodeElementCreator As IElementCreatorCore
) As Expression
Parameters
- target
- Type: System.Linq.ExpressionsExpression
The target of toCoerce. - toCoerce
- Type: System.Linq.ExpressionsExpression
To coerce. - generatedCodeElementCreator
- Type: SD.LLBLGen.Pro.ORMSupportClassesIElementCreatorCore
The generated code element creator.
Return Value
Type:
Expression
toCoerce if it's not a setreference expression, otherwise the first field in the projection of handledLeft, if it's a query
See Also