DbExpressionBuilder.OrderBy メソッド

定義

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

オーバーロード

OrderBy(DbExpression, Func<DbExpression,DbExpression>)

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

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

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

OrderBy(DbExpression, Func<DbExpression,DbExpression>)

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortExpression ^ OrderBy(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 OrderBy (this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> sortKey);
static member OrderBy : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbSortExpression
<Extension()>
Public Function OrderBy (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 によって生成された式の結果型が、順序比較できる型ではありません。

適用対象

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortExpression ^ OrderBy(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 OrderBy (this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> sortKey, string collation);
static member OrderBy : 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 OrderBy (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 が空であるか、空白文字だけで構成されています。

適用対象