DbExpressionBuilder.ToSortClause メソッド

定義

昇順の並べ替え順序と既定の照合順序を持つ新しい DbSortClause を作成します。

オーバーロード

名前 説明
ToSortClause(DbExpression)

昇順の並べ替え順序と既定の照合順序を持つ新しい DbSortClause を作成します。

ToSortClause(DbExpression, String)

昇順の並べ替え順序と指定した照合順序を持つ新しい DbSortClause を作成します。

ToSortClause(DbExpression)

昇順の並べ替え順序と既定の照合順序を持つ新しい DbSortClause を作成します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortClause ^ ToSortClause(System::Data::Common::CommandTrees::DbExpression ^ key);
public static System.Data.Common.CommandTrees.DbSortClause ToSortClause(this System.Data.Common.CommandTrees.DbExpression key);
static member ToSortClause : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbSortClause
<Extension()>
Public Function ToSortClause (key As DbExpression) As DbSortClause

パラメーター

key
DbExpression

並べ替えキーを定義する式。

返品

指定された並べ替えキーと昇順の並べ替え順序を持つ新しい並べ替え句。

例外

key が null です。

key には、並べ替えと同等の結果の型がありません。

適用対象

ToSortClause(DbExpression, String)

昇順の並べ替え順序と指定した照合順序を持つ新しい DbSortClause を作成します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortClause ^ ToSortClause(System::Data::Common::CommandTrees::DbExpression ^ key, System::String ^ collation);
public static System.Data.Common.CommandTrees.DbSortClause ToSortClause(this System.Data.Common.CommandTrees.DbExpression key, string collation);
static member ToSortClause : System.Data.Common.CommandTrees.DbExpression * string -> System.Data.Common.CommandTrees.DbSortClause
<Extension()>
Public Function ToSortClause (key As DbExpression, collation As String) As DbSortClause

パラメーター

key
DbExpression

並べ替えキーを定義する式。

collation
String

並べ替える照合順序。

返品

指定された並べ替えキーと照合順序、および昇順の並べ替え順序を持つ新しい並べ替え句。

例外

key が null です。

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

key には、並べ替えと同等の結果の型がありません。

適用対象