Class OrderByExpression
- Assembly
- TimeCockpit.Data.dll
AST Node representing an Order By Expression (part of an Order By) e.g. in
From X In Timesheet OrderBy X.BeginTime ASC, X.Description DESC Select X,
X.BeginTime as well as X.Description represen OrderBy Expressions.
public class OrderByExpression : Node
- Inheritance
-
ObjectOrderByExpression
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
OrderByExpression(Expression, SortDirection)
Initializes a new instance of the OrderByExpression class.
public OrderByExpression(Expression expression, SortDirection sortDirection)
Parameters
expressionExpressionthe expression to order by.
sortDirectionSortDirectionthe direction in which to sort.
Properties
Expression
Gets the expression that to evaluate the sorted value.
public Expression Expression { get; }
Property Value
SortDirection
Gets the sort order in which to sort (ASC or DESC)
public SortDirection SortDirection { get; }
Property Value
Methods
Accept(Visitor)
Dispatches to the correct VisitQuery(Query) function.
public override Node Accept(Visitor visitor)
Parameters
visitorVisitorVisitor to dispatch.
Returns
- Node
Returns the value returned by VisitQuery(Query)