Table of Contents

Class OrderByClause

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.Legacy.dll

Represents an order by clause.

public class OrderByClause
Inheritance
OrderByClause
Inherited Members
Extension Methods

Constructors

OrderByClause(LambdaExpression, OrderByDirection)

Initializes an instance of the OrderByClause class.

public OrderByClause(LambdaExpression key, OrderByDirection direction)

Parameters

key LambdaExpression

An expression identifying the key of the order by clause.

direction OrderByDirection

The direction of the order by clause.

Properties

Direction

Gets the direction of the order by clause.

public OrderByDirection Direction { get; }

Property Value

OrderByDirection

Key

Gets the lambda expression identifying the key of the order by clause.

public LambdaExpression Key { get; }

Property Value

LambdaExpression