public void TransformExpressions () { var oldExpression = ExpressionHelper.CreateExpression (); var newExpression = ExpressionHelper.CreateExpression (); var clause = new SelectClause (oldExpression); clause.TransformExpressions (ex => { Assert.That (ex, Is.SameAs (oldExpression)); return newExpression; }); Assert.That (clause.Selector, Is.SameAs (newExpression)); }
public void Transform(SelectClause selectClause) { // The select clause typically requires joins for non-Identifier member access _requiresJoinForNonIdentifier = true; selectClause.TransformExpressions(VisitExpression); _requiresJoinForNonIdentifier = false; }
public void Transform(SelectClause selectClause) { selectClause.TransformExpressions(VisitExpression); }
/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public override void VisitSelectClause(SelectClause selectClause, QueryModel queryModel) => selectClause.TransformExpressions(TransformingVisitor.Visit);
public override void VisitSelectClause(SelectClause selectClause, QueryModel queryModel) { selectClause.TransformExpressions(e => MergeAggregatingResultsInExpressionRewriter.Rewrite(e, new NameGenerator(queryModel))); }
public void Transform(SelectClause selectClause) { _requiresJoinForNonIdentifier = true; selectClause.TransformExpressions(VisitExpression); _requiresJoinForNonIdentifier = false; }