DbExpressionBuilder.UnionAll(DbExpression, DbExpression) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个新 DbUnionAllExpression 值,用于计算左右集参数的并集参数,并且不会删除重复项。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbUnionAllExpression ^ UnionAll(System::Data::Common::CommandTrees::DbExpression ^ left, System::Data::Common::CommandTrees::DbExpression ^ right);
public static System.Data.Common.CommandTrees.DbUnionAllExpression UnionAll(this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);
static member UnionAll : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbUnionAllExpression
<Extension()>
Public Function UnionAll (left As DbExpression, right As DbExpression) As DbUnionAllExpression
参数
- left
- DbExpression
定义左集参数的表达式。
- right
- DbExpression
定义正确的集参数的表达式。
返回
一个新的 DbUnionAllExpression,该联合(包括左参数和右参数的副本)。
例外
left 或 right 为 null。
不存在具有相等可比较元素类型的常见集合结果类型left,right