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 為空值。

在與right之間不存在left具有等號可比較元素類型的共同集合結果型態。

適用於