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.

C#
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);

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

Entity Framework Core 1.1 і Entity Framework Core 1.0
Продукт Версії
Entity Framework Core 1.0, 1.1

AddToOrderBy(Ordering)

Source:
SelectExpression.cs
Source:
SelectExpression.cs

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

C#
public virtual void AddToOrderBy (Remotion.Linq.Clauses.Ordering ordering);
C#
public virtual Remotion.Linq.Clauses.Ordering AddToOrderBy (Remotion.Linq.Clauses.Ordering ordering);

Parameters

ordering
Remotion.Linq.Clauses.Ordering

The ordering.

Returns

Remotion.Linq.Clauses.Ordering

The ordering added to select expression.

Applies to

Entity Framework Core 2.2 та інші версії
Продукт Версії
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

AddToOrderBy(IEnumerable<Ordering>)

Adds multiple expressions to the ORDER BY of this SelectExpression.

C#
public virtual void AddToOrderBy (System.Collections.Generic.IEnumerable<Remotion.Linq.Clauses.Ordering> orderings);

Parameters

orderings
IEnumerable<Remotion.Linq.Clauses.Ordering>

The orderings expressions.

Applies to

Entity Framework Core 1.1 і Entity Framework Core 1.0
Продукт Версії
Entity Framework Core 1.0, 1.1