Class OrderByExpression
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.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.QueryLanguage.Syntax
Assembly: TimeCockpit.Data.dll
Syntax
public class OrderByExpression : Node
Constructors
OrderByExpression(Expression, SortDirection)
Initializes a new instance of the OrderByExpression class.
Declaration
public OrderByExpression(Expression expression, SortDirection sortDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression | expression | the expression to order by. |
| SortDirection | sortDirection | the direction in which to sort. |
Properties
Expression
Gets the expression that to evaluate the sorted value.
Declaration
public Expression Expression { get; }
Property Value
| Type | Description |
|---|---|
| Expression |
SortDirection
Gets the sort order in which to sort (ASC or DESC)
Declaration
public SortDirection SortDirection { get; }
Property Value
| Type | Description |
|---|---|
| SortDirection |
Methods
Accept(Visitor)
Dispatches to the correct VisitQuery(Query) function.
Declaration
public override Node Accept(Visitor visitor)
Parameters
| Type | Name | Description |
|---|---|---|
| Visitor | visitor | Visitor to dispatch. |
Returns
| Type | Description |
|---|---|
| Node | Returns the value returned by VisitQuery(Query) |