DbExpressionBuilder.OrderByDescending メソッド

定義

指定した入力セットを、降順の並べ替え順序と既定の照合順序で、指定した並べ替えキーで並べ替える新しい DbSortExpression を作成します。

オーバーロード

名前 説明
OrderByDescending(DbExpression, Func<DbExpression,DbExpression>)

指定した入力セットを、降順の並べ替え順序と既定の照合順序で、指定した並べ替えキーで並べ替える新しい DbSortExpression を作成します。

OrderByDescending(DbExpression, Func<DbExpression,DbExpression>, String)

指定した入力セットを、降順の並べ替え順序と指定した照合順序で、指定した並べ替えキーで並べ替える新しい DbSortExpression を作成します。

OrderByDescending(DbExpression, Func<DbExpression,DbExpression>)

指定した入力セットを、降順の並べ替え順序と既定の照合順序で、指定した並べ替えキーで並べ替える新しい DbSortExpression を作成します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortExpression ^ OrderByDescending(System::Data::Common::CommandTrees::DbExpression ^ source, Func<System::Data::Common::CommandTrees::DbExpression ^, System::Data::Common::CommandTrees::DbExpression ^> ^ sortKey);
public static System.Data.Common.CommandTrees.DbSortExpression OrderByDescending(this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> sortKey);
static member OrderByDescending : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbSortExpression
<Extension()>
Public Function OrderByDescending (source As DbExpression, sortKey As Func(Of DbExpression, DbExpression)) As DbSortExpression

パラメーター

source
DbExpression

入力セットを指定する式。

sortKey
Func<DbExpression,DbExpression>

入力セットのメンバーを指定して並べ替えキー式を派生させる方法を指定するメソッド。 このメソッドは、並べ替えキー定義を提供する順序に相当する結果型を持つ式を生成する必要があります。

返品

order-by 操作を表す新しい DbSortExpression。

例外

source または sortKey が null です。

-または-

sortKeyによって生成される式が null です。

source にはコレクションの結果の型がありません。

-または-

sortKeyによって生成される式には、順序に相当する結果型がありません。

適用対象

OrderByDescending(DbExpression, Func<DbExpression,DbExpression>, String)

指定した入力セットを、降順の並べ替え順序と指定した照合順序で、指定した並べ替えキーで並べ替える新しい DbSortExpression を作成します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortExpression ^ OrderByDescending(System::Data::Common::CommandTrees::DbExpression ^ source, Func<System::Data::Common::CommandTrees::DbExpression ^, System::Data::Common::CommandTrees::DbExpression ^> ^ sortKey, System::String ^ collation);
public static System.Data.Common.CommandTrees.DbSortExpression OrderByDescending(this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> sortKey, string collation);
static member OrderByDescending : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> * string -> System.Data.Common.CommandTrees.DbSortExpression
<Extension()>
Public Function OrderByDescending (source As DbExpression, sortKey As Func(Of DbExpression, DbExpression), collation As String) As DbSortExpression

パラメーター

source
DbExpression

入力セットを指定する式。

sortKey
Func<DbExpression,DbExpression>

入力セットのメンバーを指定して並べ替えキー式を派生させる方法を指定するメソッド。 このメソッドは、並べ替えキー定義を提供する順序に相当する結果型を持つ式を生成する必要があります。

collation
String

並べ替える照合順序。

返品

order-by 操作を表す新しい DbSortExpression。

例外

sourcesortKey 、または collation が null です。

-または-

sortKeyによって生成される式が null です。

source にはコレクションの結果の型がありません。

-または-

sortKeyによって生成される式には、順序に相当する文字列の結果型がありません。

collation が空であるか、空白文字のみが含まれています。

適用対象