DbExpressionBuilder.UnionAll(DbExpression, DbExpression) 方法

定義

建立新的 DbUnionAllExpression 物件,這個物件會計算左右集合引數的聯集,且不移除重複的項目。

C#
public static System.Data.Common.CommandTrees.DbUnionAllExpression UnionAll (this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);

參數

left
DbExpression

定義左集合引數的運算式。

right
DbExpression

定義右集合引數的運算式。

傳回

作為左邊和右邊引數之聯集 (包括重複項目) 的新 DbUnionAllExpression。

例外狀況

leftright 為 null。

leftright 之間沒有相等比較的項目型別的一般集合結果型別。

適用於

產品 版本
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1