Example #1
0
        private Expression RemapLambdaBody(ShapedQueryExpression shapedQueryExpression, LambdaExpression lambdaExpression)
        {
            var lambdaBody = ReplacingExpressionVisitor.Replace(
                lambdaExpression.Parameters.Single(), shapedQueryExpression.ShaperExpression, lambdaExpression.Body);

            var selectExpression = (SelectExpression)shapedQueryExpression.QueryExpression;

            lambdaBody = _weakEntityExpandingExpressionVisitor.Expand(selectExpression, lambdaBody);

            return(lambdaBody);
        }
Example #2
0
 internal Expression ExpandWeakEntities(SelectExpression selectExpression, Expression lambdaBody)
 => _weakEntityExpandingExpressionVisitor.Expand(selectExpression, lambdaBody);