EntityCollection<TEntity>.CreateSourceQuery Method ()
Returns an object query that, when it is executed, returns the same set of objects that exists in the current collection.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
This property is used to obtain a new instance of ObjectQuery<T> that returns the same set of objects. This is useful as the starting point for a more complex join, union, or filtered query, or to return the same objects in a detached state by using the NoTracking option.
This example is based on a modified version of the . This version supports table-per-type inheritance with Course as an abstract type. Complete the walkthrough to modify the School model to support the table-per-type inheritance example used in this topic.
Available since 3.5