DbExpressionBuilder.Or Method (DbExpression, DbExpression)

.NET Framework (current version)
 

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

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

public static DbOrExpression Or(
	this DbExpression left,
	DbExpression right
)

Parameters

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

A Boolean expression that specifies the left argument.

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

A Boolean expression that specifies the right argument.

Return Value

Type: System.Data.Common.CommandTrees.DbOrExpression

A new DbOrExpression with the specified arguments.

Exception Condition
ArgumentNullException

left or right is null.

ArgumentException

left or right does not have a Boolean result type.

.NET Framework
Available since 4.5
Return to top
Show: