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

Move OrderBy expressions to the outer most select
Inheritance: Shaolinq.Persistence.Linq.Expressions.SqlExpressionVisitor
Exibir arquivo Open project: tumtumtum/Shaolinq Class Usage Examples

Public Methods

Method Description
Rewrite ( Expression expression ) : Expression

Protected Methods

Method Description
RebindOrderings ( IEnumerable orderings, string alias, HashSet existingAliases, IReadOnlyList existingColumns ) : BindResult
VisitSelect ( SqlSelectExpression select ) : Expression

Private Methods

Method Description
PrependOrderings ( IEnumerable newOrderings ) : void
SqlOrderByRewriter ( ) : System.Collections.Generic

Method Details

RebindOrderings() protected method

protected RebindOrderings ( IEnumerable orderings, string alias, HashSet existingAliases, IReadOnlyList existingColumns ) : BindResult
orderings IEnumerable
alias string
existingAliases HashSet
existingColumns IReadOnlyList
return BindResult

Rewrite() public static method

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

VisitSelect() protected method

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