DbExpressionBuilder.Union Method (DbExpression, DbExpression)
Creates a new DbExpression that computes the union of the left and right set arguments with duplicates removed.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- left
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that defines the left set argument.
- right
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that defines the right set argument.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpressionA new DbExpression that computes the union, without duplicates, of the left and right arguments.
Exception | Condition |
---|---|
ArgumentNullException | left or right is null. |
ArgumentException | No common collection result type with an equality-comparable element type exists between left and right. |