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

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


DbExpressionBuilder.Or(DbExpression, DbExpression) Method

Definition

Creates an DbOrExpression that performs the logical Or of the left and right arguments.

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

Parameters

left
DbExpression

A Boolean expression that specifies the left argument.

right
DbExpression

A Boolean expression that specifies the right argument.

Returns

A new DbOrExpression with the specified arguments.

Exceptions

left or right is null.

left or right does not have a Boolean result type.

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