Share via


DbExpressionBuilder.ToSortClauseDescending 方法

定义

使用降序排序顺序和默认排序规则创建一个新的 DbSortClause

重载

ToSortClauseDescending(DbExpression)

使用降序排序顺序和默认排序规则创建一个新的 DbSortClause

ToSortClauseDescending(DbExpression, String)

使用降序排序顺序和指定排序规则创建一个新的 DbSortClause

ToSortClauseDescending(DbExpression)

使用降序排序顺序和默认排序规则创建一个新的 DbSortClause

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

参数

key
DbExpression

定义排序键的表达式。

返回

使用给定的排序关键字和降序排序顺序的新排序子句。

例外

key 为 null。

key 没有可比较顺序的结果类型。

适用于

ToSortClauseDescending(DbExpression, String)

使用降序排序顺序和指定排序规则创建一个新的 DbSortClause

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

参数

key
DbExpression

定义排序键的表达式。

collation
String

排序所依据的排序规则。

返回

使用给定的排序关键字和排序规则的新排序子句,使用降序排序顺序。

例外

key 为 null。

collation 为空,或者只包含空白字符。

key 没有可比较顺序的结果类型。

适用于