DbExpressionBuilder.Not Method (DbExpression)

 

Creates a DbNotExpression that performs the logical negation of the given argument.

Namespace:   System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
Assembly:  EntityFramework (in EntityFramework.dll)

public static DbNotExpression Not(
	this DbExpression argument
)

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.DbNotExpression

A new DbNotExpression with the specified argument.

Exception Condition
ArgumentNullException

argument is null.

ArgumentException

argument does not have a Boolean result type.