Επεξεργασία

Κοινή χρήση μέσω


DbExpressionBuilder.Union(DbExpression, DbExpression) Method

Definition

Creates a new DbExpression that computes the union of the left and right set arguments with duplicates removed.

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

Parameters

left
DbExpression

An expression that defines the left set argument.

right
DbExpression

An expression that defines the right set argument.

Returns

A new DbExpression that computes the union, without duplicates, of the left and right arguments.

Exceptions

left or right is null.

No common collection result type with an equality-comparable element type exists between left and right.

Applies to