Click or drag to resize

LinqUtils.CoerceSetReferenceExpressionToEntityFieldExpressionIfRequired 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.12.0.0 (5.12.0)
Syntax
public static Expression CoerceSetReferenceExpressionToEntityFieldExpressionIfRequired(
	Expression target,
	Expression toCoerce,
	IElementCreatorCore generatedCodeElementCreator
)

Parameters

target
Type: System.Linq.Expressions.Expression
The target of toCoerce.
toCoerce
Type: System.Linq.Expressions.Expression
To coerce.
generatedCodeElementCreator
Type: SD.LLBLGen.Pro.ORMSupportClasses.IElementCreatorCore
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