DbExpressionBuilder.Not Method (DbExpression)
Creates a DbNotExpression that performs the logical negation of the given argument.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- argument
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
A Boolean expression that specifies the argument.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbNotExpressionA new DbNotExpression with the specified argument.
Exception | Condition |
---|---|
ArgumentNullException | argument is null. |
ArgumentException | argument does not have a Boolean result type. |