SelectExpression.AddToOrderBy Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
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
Entity Framework Core 1.1 і Entity Framework Core 1.0
Продукт | Версії |
---|---|
Entity Framework Core | 1.0, 1.1 |
- Source:
- SelectExpression.cs
- Source:
- SelectExpression.cs
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
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 |
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
Entity Framework Core 1.1 і Entity Framework Core 1.0
Продукт | Версії |
---|---|
Entity Framework Core | 1.0, 1.1 |
Відгук про Entity Framework
Entity Framework – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: