C# Class IQ.Data.OrderByRewriter

Moves order-bys to the outermost select if possible
Inheritance: DbExpressionVisitor
Afficher le fichier Open project: maravillas/linq-to-delicious

Méthodes publiques

Méthode Description
Rewrite ( Expression expression ) : Expression

Méthodes protégées

Méthode Description
PrependOrderings ( IList newOrderings ) : void

Add a sequence of order expressions to an accumulated list, prepending so as to give precedence to the new expressions over any previous expressions

RebindOrderings ( IEnumerable orderings, TableAlias alias, HashSet existingAliases, IEnumerable existingColumns ) : BindResult

Rebind order expressions to reference a new alias and add to column declarations if necessary

VisitJoin ( JoinExpression join ) : Expression
VisitSelect ( SelectExpression select ) : Expression
VisitSubquery ( SubqueryExpression subquery ) : Expression

Private Methods

Méthode Description
OrderByRewriter ( ) : System

Method Details

PrependOrderings() protected méthode

Add a sequence of order expressions to an accumulated list, prepending so as to give precedence to the new expressions over any previous expressions
protected PrependOrderings ( IList newOrderings ) : void
newOrderings IList
Résultat void

RebindOrderings() protected méthode

Rebind order expressions to reference a new alias and add to column declarations if necessary
protected RebindOrderings ( IEnumerable orderings, TableAlias alias, HashSet existingAliases, IEnumerable existingColumns ) : BindResult
orderings IEnumerable
alias TableAlias
existingAliases HashSet
existingColumns IEnumerable
Résultat BindResult

Rewrite() public static méthode

public static Rewrite ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
Résultat System.Linq.Expressions.Expression

VisitJoin() protected méthode

protected VisitJoin ( JoinExpression join ) : Expression
join JoinExpression
Résultat System.Linq.Expressions.Expression

VisitSelect() protected méthode

protected VisitSelect ( SelectExpression select ) : Expression
select SelectExpression
Résultat System.Linq.Expressions.Expression

VisitSubquery() protected méthode

protected VisitSubquery ( SubqueryExpression subquery ) : Expression
subquery SubqueryExpression
Résultat System.Linq.Expressions.Expression