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

 

This query-builder method creates a new query whose results are those that are both in this query and the other query specified.

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

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

Parameters

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

A query representing the results to intersect with.

Return Value

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

a new ObjectQuery instance.

Exception Condition
ArgumentNullException

If the query parameter is null.