DbExpressionBuilder.Union(DbExpression, DbExpression) Metoda

Definice

Vytvoří novou DbExpression , která vypočítá sjednocení levých a pravých argumentů s odebranými duplicitami.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbExpression ^ Union(System::Data::Common::CommandTrees::DbExpression ^ left, System::Data::Common::CommandTrees::DbExpression ^ right);
public static System.Data.Common.CommandTrees.DbExpression Union(this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);
static member Union : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbExpression
<Extension()>
Public Function Union (left As DbExpression, right As DbExpression) As DbExpression

Parametry

left
DbExpression

Výraz, který definuje argument sady vlevo.

right
DbExpression

Výraz, který definuje argument správné sady.

Návraty

Nový DbExpression, který vypočítá sjednocení bez duplicit, z levého a pravého argumentu.

Výjimky

left nebo right má hodnotu null.

Neexistuje žádný společný typ výsledku kolekce s typem prvku srovnatelného s rovností mezi left a right.

Platí pro