DbExpressionBuilder.UnionAll Method (DbExpression, DbExpression)
Creates a new DbUnionAllExpression that computes the union of the left and right set arguments and does not remove duplicates.
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.DbUnionAllExpressionA new DbUnionAllExpression that union, including duplicates, of the the left and right arguments.
Exception | Condition |
---|---|
ArgumentNullException | left or right is null. |
ArgumentException | No common collection result type exists between left and right. |