Прочетете на английски Редактиране

Споделяне чрез


DbExpressionBuilder.NotEqual(DbExpression, DbExpression) Method

Definition

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

C#
public static System.Data.Common.CommandTrees.DbComparisonExpression NotEqual(this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);

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

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1