DbExpressionBuilder.NotEqual Method (DbExpression, DbExpression)

 

Creates a new DbComparisonExpression that compares the left and right arguments for inequality.

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

public static DbComparisonExpression NotEqual(
	this DbExpression left,
	DbExpression right
)

Parameters

left
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression

An expression that specifies the left argument.

right
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression

An expression that specifies the right argument.

Return Value

Type: System.Data.Entity.Core.Common.CommandTrees.DbComparisonExpression

A new DbComparisonExpression representing the inequality comparison.

Exception Condition
ArgumentNullException

left or right is null.

ArgumentException

No common equality-comparable result type exists between left and right.