DbExpressionBuilder.NotEqual(DbExpression, DbExpression) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbComparisonExpression ^ NotEqual(System::Data::Common::CommandTrees::DbExpression ^ left, System::Data::Common::CommandTrees::DbExpression ^ right);
public static System.Data.Common.CommandTrees.DbComparisonExpression NotEqual (this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);
static member NotEqual : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbComparisonExpression
<Extension()>
Public Function NotEqual (left As DbExpression, right As DbExpression) As DbComparisonExpression

Parameters

left
DbExpression

An expression that specifies the left argument.

right
DbExpression

An expression that specifies the right argument.

Returns

A new DbComparisonExpression representing the inequality comparison.

Exceptions

left or right is null.

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

Applies to