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); }
internal Expression ExpandWeakEntities(SelectExpression selectExpression, Expression lambdaBody) => _weakEntityExpandingExpressionVisitor.Expand(selectExpression, lambdaBody);