Show / Hide Table of Contents

    Class OrderByExpression

    Expression, which represent ORDER BY statement from sql select query.

    Inheritance
    System.Object
    System.Linq.Expressions.Expression
    QueryExpression
    OrderByExpression
    Inherited Members
    QueryExpression.NodeType
    QueryExpression.Type
    Namespace: Kros.KORM.Query.Expressions
    Assembly: Kros.KORM.dll
    Syntax
    public class OrderByExpression : QueryExpression

    Constructors

    OrderByExpression(String)

    Initializes a new instance of the OrderByExpression class.

    Declaration
    public OrderByExpression(string orderBy)
    Parameters
    Type Name Description
    System.String orderBy

    The orderBy part of sql.

    Remarks

    Order by columns are separate by ,

    OrderByExpression(String[])

    Initializes a new instance of the OrderByExpression class.

    Declaration
    public OrderByExpression(params string[] columns)
    Parameters
    Type Name Description
    System.String[] columns

    The orderBy.

    Fields

    OrderByStatement

    The group by statement

    Declaration
    public const string OrderByStatement = "ORDER BY"
    Field Value
    Type Description
    System.String

    Properties

    OrderByPart

    Gets or sets the group by part.

    Declaration
    public string OrderByPart { get; }
    Property Value
    Type Description
    System.String

    Methods

    Accept(ExpressionVisitor)

    Dispatches to the specific visit method for this node type. For example, System.Linq.Expressions.MethodCallExpression calls the System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(System.Linq.Expressions.MethodCallExpression).

    Declaration
    protected override Expression Accept(ExpressionVisitor visitor)
    Parameters
    Type Name Description
    System.Linq.Expressions.ExpressionVisitor visitor

    The visitor to visit this node with.

    Returns
    Type Description
    System.Linq.Expressions.Expression

    The result of visiting this node.

    Overrides
    System.Linq.Expressions.Expression.Accept(System.Linq.Expressions.ExpressionVisitor)

    See Also

    ISqlExpressionVisitor
    Back to top KROS a.s.