DbExpressionBuilder.UnionAll(DbExpression, DbExpression) 方法

定义

创建一个新 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,该联合(包括左参数和右参数的副本)。

例外

leftright 为 null。

不存在具有相等可比较元素类型的常见集合结果类型leftright

适用于