DbExpressionBuilder.Negate(DbExpression) 方法

定義

建立新的 DbArithmeticExpression,這個運算式會將引數值變成相反值。

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

參數

argument
DbExpression

指定引數的運算式。

傳回

表示否定運算的新 DbArithmeticExpression。

例外狀況

argument 為 null。

argument 沒有數字結果型別。

適用於