Share via


SelectExpression.AddToOrderBy Method

Definition

Overloads

AddToOrderBy(String, IProperty, TableExpressionBase, OrderingDirection)

Adds a column to the ORDER BY of this SelectExpression.

AddToOrderBy(Ordering)

Adds a single Remotion.Linq.Clauses.Ordering to the order by.

AddToOrderBy(IEnumerable<Ordering>)

Adds multiple expressions to the ORDER BY of this SelectExpression.

AddToOrderBy(String, IProperty, TableExpressionBase, OrderingDirection)

Adds a column to the ORDER BY of this SelectExpression.

public virtual Microsoft.EntityFrameworkCore.Query.Expressions.AliasExpression AddToOrderBy (string column, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Query.Expressions.TableExpressionBase table, Remotion.Linq.Clauses.OrderingDirection orderingDirection);
abstract member AddToOrderBy : string * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Query.Expressions.TableExpressionBase * Remotion.Linq.Clauses.OrderingDirection -> Microsoft.EntityFrameworkCore.Query.Expressions.AliasExpression
override this.AddToOrderBy : string * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Query.Expressions.TableExpressionBase * Remotion.Linq.Clauses.OrderingDirection -> Microsoft.EntityFrameworkCore.Query.Expressions.AliasExpression
Public Overridable Function AddToOrderBy (column As String, property As IProperty, table As TableExpressionBase, orderingDirection As OrderingDirection) As AliasExpression

Parameters

column
String

The column name.

property
IProperty

The corresponding EF property.

table
TableExpressionBase

The target table.

orderingDirection
Remotion.Linq.Clauses.OrderingDirection

The ordering direction.

Returns

An AliasExpression corresponding to the expression added to the ORDER BY.

Applies to

AddToOrderBy(Ordering)

Adds a single Remotion.Linq.Clauses.Ordering to the order by.

public virtual void AddToOrderBy (Remotion.Linq.Clauses.Ordering ordering);
public virtual Remotion.Linq.Clauses.Ordering AddToOrderBy (Remotion.Linq.Clauses.Ordering ordering);
abstract member AddToOrderBy : Remotion.Linq.Clauses.Ordering -> unit
override this.AddToOrderBy : Remotion.Linq.Clauses.Ordering -> unit
abstract member AddToOrderBy : Remotion.Linq.Clauses.Ordering -> Remotion.Linq.Clauses.Ordering
override this.AddToOrderBy : Remotion.Linq.Clauses.Ordering -> Remotion.Linq.Clauses.Ordering
Public Overridable Sub AddToOrderBy (ordering As Ordering)
Public Overridable Function AddToOrderBy (ordering As Ordering) As Ordering

Parameters

ordering
Remotion.Linq.Clauses.Ordering

The ordering.

Returns

Remotion.Linq.Clauses.Ordering

The ordering added to select expression.

Applies to

AddToOrderBy(IEnumerable<Ordering>)

Adds multiple expressions to the ORDER BY of this SelectExpression.

public virtual void AddToOrderBy (System.Collections.Generic.IEnumerable<Remotion.Linq.Clauses.Ordering> orderings);
abstract member AddToOrderBy : seq<Remotion.Linq.Clauses.Ordering> -> unit
override this.AddToOrderBy : seq<Remotion.Linq.Clauses.Ordering> -> unit
Public Overridable Sub AddToOrderBy (orderings As IEnumerable(Of Ordering))

Parameters

orderings
IEnumerable<Remotion.Linq.Clauses.Ordering>

The orderings expressions.

Applies to