DbExpressionBuilder.UnaryMinus(DbExpression) 方法

定义

创建一个否定参数值的新 DbArithmeticExpression 项。

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

参数

argument
DbExpression

一个指定参数的表达式。

返回

表示求反运算的新 DbArithmeticExpression。

例外

argument 为 null。

不存在数值 argument结果类型。

适用于