Click or drag to resize
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.3.0.0 (5.3.0)
Syntax
public static Expression CoerceSetReferenceExpressionToEntityFieldExpressionIfRequired(
	Expression target,
	Expression toCoerce,
	IElementCreatorCore generatedCodeElementCreator
)

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