コード例 #1
0
    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));
    }
コード例 #2
0
		public void Transform(SelectClause selectClause)
		{
			// The select clause typically requires joins for non-Identifier member access
			_requiresJoinForNonIdentifier = true;
			selectClause.TransformExpressions(VisitExpression);
			_requiresJoinForNonIdentifier = false;
		}
コード例 #3
0
		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);
コード例 #5
0
		public override void VisitSelectClause(SelectClause selectClause, QueryModel queryModel)
		{
            selectClause.TransformExpressions(e => MergeAggregatingResultsInExpressionRewriter.Rewrite(e, new NameGenerator(queryModel)));
		}
コード例 #6
0
		public void Transform(SelectClause selectClause)
		{
			_requiresJoinForNonIdentifier = true;
			selectClause.TransformExpressions(VisitExpression);
			_requiresJoinForNonIdentifier = false;
		}