C# Class Shaolinq.Persistence.Linq.Optimizers.SqlAggregateSubqueryRewriter

Rewrite aggregate expressions, moving them into same select expression that has the group-by clause.
Inheritance: Shaolinq.Persistence.Linq.Expressions.SqlExpressionVisitor
Exibir arquivo Open project: tumtumtum/Shaolinq

Public Methods

Method Description
Rewrite ( Expression expr ) : Expression

Protected Methods

Method Description
VisitAggregateSubquery ( SqlAggregateSubqueryExpression aggregate ) : Expression
VisitSelect ( SqlSelectExpression select ) : Expression

Private Methods

Method Description
SqlAggregateSubqueryRewriter ( Expression expr ) : System.Collections.Generic

Method Details

Rewrite() public static method

public static Rewrite ( Expression expr ) : Expression
expr System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

VisitAggregateSubquery() protected method

protected VisitAggregateSubquery ( SqlAggregateSubqueryExpression aggregate ) : Expression
aggregate Shaolinq.Persistence.Linq.Expressions.SqlAggregateSubqueryExpression
return System.Linq.Expressions.Expression

VisitSelect() protected method

protected VisitSelect ( SqlSelectExpression select ) : Expression
select Shaolinq.Persistence.Linq.Expressions.SqlSelectExpression
return System.Linq.Expressions.Expression