SelectExpression.AddToOrderBy 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddToOrderBy(String, IProperty, TableExpressionBase, OrderingDirection) |
将列添加到此 SelectExpression 的 ORDER BY。 |
AddToOrderBy(Ordering) |
将单个 Remotion.Linq.Clauses.Ordering 添加到订单依据。 |
AddToOrderBy(IEnumerable<Ordering>) |
将多个表达式添加到此 SelectExpression 的 ORDER BY。 |
AddToOrderBy(String, IProperty, TableExpressionBase, OrderingDirection)
将列添加到此 SelectExpression 的 ORDER BY。
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
参数
- column
- String
列名称。
- property
- IProperty
相应的 EF 属性。
- table
- TableExpressionBase
目标表。
- orderingDirection
- Remotion.Linq.Clauses.OrderingDirection
排序方向。
返回
与添加到 ORDER BY 的表达式对应的 AliasExpression。
适用于
AddToOrderBy(Ordering)
将单个 Remotion.Linq.Clauses.Ordering 添加到订单依据。
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
参数
- ordering
- Remotion.Linq.Clauses.Ordering
排序。
返回
Remotion.Linq.Clauses.Ordering
添加到 select 表达式的排序。
适用于
AddToOrderBy(IEnumerable<Ordering>)
将多个表达式添加到此 SelectExpression 的 ORDER BY。
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))
参数
- orderings
- IEnumerable<Remotion.Linq.Clauses.Ordering>
排序表达式。