語言

DbExpressionBuilder.ToSortClauseDescending 方法

定義

多載

名稱 Description
ToSortClauseDescending(DbExpression)

建立一個 DbSortClause 新檔案,排序順序由降而低,並預設排序。

ToSortClauseDescending(DbExpression, String)

建立 DbSortClause 一個具有遞減排序順序及指定排序的新檔案。

ToSortClauseDescending(DbExpression)

建立一個 DbSortClause 新檔案,排序順序由降而低,並預設排序。

public static System.Data.Entity.Core.Common.CommandTrees.DbSortClause ToSortClauseDescending(this System.Data.Entity.Core.Common.CommandTrees.DbExpression key);
static member ToSortClauseDescending : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbSortClause
<Extension()>
Public Function ToSortClauseDescending (key As DbExpression) As DbSortClause

參數

key
DbExpression

定義排序鍵的表達式。

傳回

一個新的排序子句,包含給定的排序鍵和遞減排序。

例外狀況

鍵為空。

Key 沒有可比階的結果類型。

適用於

ToSortClauseDescending(DbExpression, String)

建立 DbSortClause 一個具有遞減排序順序及指定排序的新檔案。

public static System.Data.Entity.Core.Common.CommandTrees.DbSortClause ToSortClauseDescending(this System.Data.Entity.Core.Common.CommandTrees.DbExpression key, string collation);
static member ToSortClauseDescending : System.Data.Entity.Core.Common.CommandTrees.DbExpression * string -> System.Data.Entity.Core.Common.CommandTrees.DbSortClause
<Extension()>
Public Function ToSortClauseDescending (key As DbExpression, collation As String) As DbSortClause

參數

key
DbExpression

定義排序鍵的表達式。

collation
String

要整理的集合。

傳回

一個新的排序子句,包含給定的排序鍵和排序,排序順序由降而低。

例外狀況

鍵為空。

排序為空或僅包含空格字元。

Key 沒有可比階的結果類型。

適用於