DbBinaryExpression.Right Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the DbExpression that defines the right argument.

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

public DbExpression Right { get; }

Property Value

Type: System.Data.Common.CommandTrees.DbExpression

The DbExpression that defines the right argument.

Exception Condition
ArgumentNullException

The expression is null.

ArgumentException

The expression is not associated with the command tree of the DbBinaryExpression,

or its result type is not equal or promotable to the required type for the right argument.

Derived expression types might perform stricter type checks when the Right property is set. For example, DbUnionAllExpression requires that its right expression has a collection result type, while DbAndExpression requires a Boolean result type. Typically, derived expression types will not allow Right to be set to an expression with a result type that is not equal or promotable to the result type of the current value.

.NET Framework
Available since 3.5
Return to top
Show: