ObjectQuery<T>.UnionAll Method (ObjectQuery<T>)

 

This query-builder method creates a new query whose results are all of the results of this query, plus all of the results of the other query, including any duplicates (i.e., results are not necessarily unique).

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

public ObjectQuery<T> UnionAll(
	ObjectQuery<T> query
)

Parameters

query
Type: System.Data.Entity.Core.Objects.ObjectQuery<T>

A query representing the results to add.

Return Value

Type: System.Data.Entity.Core.Objects.ObjectQuery<T>

a new ObjectQuery instance.

Exception Condition
ArgumentNullException

If the query parameter is null.