public static Expression Rewrite(Expression expression, NameGenerator nameGenerator)
		{
            var visitor = new MergeAggregatingResultsInExpressionRewriter(nameGenerator);

			return visitor.VisitExpression(expression);
		}
Beispiel #2
0
 public override void VisitOrdering(Ordering ordering, QueryModel queryModel, OrderByClause orderByClause, int index)
 {
     ordering.TransformExpressions(e => MergeAggregatingResultsInExpressionRewriter.Rewrite(e, new NameGenerator(queryModel)));
 }
Beispiel #3
0
 public override void VisitWhereClause(WhereClause whereClause, QueryModel queryModel, int index)
 {
     whereClause.TransformExpressions(e => MergeAggregatingResultsInExpressionRewriter.Rewrite(e, new NameGenerator(queryModel)));
 }
Beispiel #4
0
 public override void VisitSelectClause(SelectClause selectClause, QueryModel queryModel)
 {
     selectClause.TransformExpressions(e => MergeAggregatingResultsInExpressionRewriter.Rewrite(e, new NameGenerator(queryModel)));
 }
Beispiel #5
0
        public static Expression Rewrite(Expression expression, NameGenerator nameGenerator)
        {
            var visitor = new MergeAggregatingResultsInExpressionRewriter(nameGenerator);

            return(visitor.VisitExpression(expression));
        }
		public static Expression Rewrite(Expression expression)
		{
		    var visitor = new MergeAggregatingResultsInExpressionRewriter();

			return visitor.VisitExpression(expression);
		}