DbBinaryExpression.Right 属性
定义
获取或设置定义右边自变量的 DbExpression。Gets or sets the DbExpression that defines the right argument.
public:
property System::Data::Common::CommandTrees::DbExpression ^ Right { System::Data::Common::CommandTrees::DbExpression ^ get(); };
public System.Data.Common.CommandTrees.DbExpression Right { get; }
member this.Right : System.Data.Common.CommandTrees.DbExpression
Public ReadOnly Property Right As DbExpression
属性值
定义右边参数的 DbExpression。The DbExpression that defines the right argument.
例外
该表达式是 null。The expression is null.
表达式与 DbBinaryExpression 的命令目录树不关联,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.
注解
在设置了 Right 属性时,派生的表达式类型可能会执行更严格的类型检查。Derived expression types might perform stricter type checks when the Right property is set. 例如,DbUnionAllExpression 要求它的右边表达式具有集合结果类型,而 DbAndExpression 要求 Boolean 结果类型。For example, DbUnionAllExpression requires that its right expression has a collection result type, while DbAndExpression requires a Boolean result type. 通常情况下,如果某结果类型不等同于或不能提升为当前值的结果类型,则派生的表达式类型便不允许将 Right 设置为具有该结果类型的表达式。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.