DbExpressionBuilder.Negate(DbExpression) 方法

定义

创建一个新的 DbArithmeticExpression,它对参数值求反。

public static System.Data.Entity.Core.Common.CommandTrees.DbArithmeticExpression Negate (this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument);
static member Negate : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbArithmeticExpression
<Extension()>
Public Function Negate (argument As DbExpression) As DbArithmeticExpression

参数

argument
DbExpression

一个指定参数的表达式。

返回

表示求反运算的新 DbArithmeticExpression。

例外

参数为 null。

参数不存在数值结果类型。

适用于