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.

Namespace:   System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
Assembly:  EntityFramework (in EntityFramework.dll)

public static DbUnionAllExpression UnionAll(
	this DbExpression left,
	DbExpression right
)

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.DbUnionAllExpression

A 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.