DbExpressionBuilder.Or Method (DbExpression, DbExpression)

 

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

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

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

Parameters

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

A Boolean expression that specifies the left argument.

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

A Boolean expression that specifies the right argument.

Return Value

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

A new DbOrExpression with the specified arguments.

Exception Condition
ArgumentNullException

leftright

ArgumentException

leftright