Table of Contents

Class OrderByExpression

Namespace
TimeCockpit.Data.QueryLanguage.Syntax
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
Object
OrderByExpression
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

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.

public Expression Expression { get; }

Property Value

Expression

SortDirection

Gets the sort order in which to sort (ASC or DESC)

public SortDirection SortDirection { get; }

Property Value

SortDirection

Methods

Accept(Visitor)

Dispatches to the correct VisitQuery(Query) function.

public override Node Accept(Visitor visitor)

Parameters

visitor Visitor

Visitor to dispatch.

Returns

Node

Returns the value returned by VisitQuery(Query)