Export (0) Print
Expand All
Expand Minimize

DbExpressionBuilder.Or Method

.NET Framework 4.5

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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DbExpression. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

ExceptionCondition
ArgumentNullException

left or right is null.

ArgumentException

left or right does not have a Boolean result type.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft