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.9.0.0 (5.9.0)
Syntax public static Expression WrapProjectionElementInSelectIfRequired(
Expression toCheck
)
Public Shared Function WrapProjectionElementInSelectIfRequired (
toCheck As Expression
) As Expression
Parameters
- toCheck
- Type: System.Linq.ExpressionsExpression
To check.
Return Value
Type:
ExpressionSee Also