Click or drag to resize

LinqUtilsWrapProjectionElementInSelectIfRequired Method

Wraps the projection element in select passed in if required. This is necessary if the expression is an entity expression and it has a correlationrelation which means that the projection element contains a reference to a related entity which will result in a nested query.

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 WrapProjectionElementInSelectIfRequired(
	Expression toCheck
)

Parameters

toCheck
Type: System.Linq.ExpressionsExpression
To check.

Return Value

Type: Expression
See Also