共用方式為


DbExpressionBuilder.UnionAll(DbExpression, DbExpression) 方法

定義

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

public static System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression UnionAll(this System.Data.Entity.Core.Common.CommandTrees.DbExpression left, System.Data.Entity.Core.Common.CommandTrees.DbExpression right);
static member UnionAll : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbUnionAllExpression
<Extension()>
Public Function UnionAll (left As DbExpression, right As DbExpression) As DbUnionAllExpression

參數

left
DbExpression

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

right
DbExpression

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

傳回

聯集的新 DbUnionAllExpression,包括左引數和右引數的重複專案。

例外狀況

向左或向右為 Null。

在左右之間沒有相等比較專案類型的常見集合結果類型。

適用於