Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IRelatedEnd.CreateSourceQuery Method

Returns an IEnumerable that represents the objects that belong to the related end.

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

IEnumerable CreateSourceQuery()

Return Value

Type: System.Collections.IEnumerable
An IEnumerable that represents the objects that belong to the related end.

The CreateSourceQuery method is explicitly implemented by the RelatedEnd class. The EntityCollection<TEntity> and EntityReference<TEntity> classes both override the IRelatedEnd.CreateSourceQuery method to return an ObjectQuery<T> that, when it is executed, returns the same set of objects that belong to the related end.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft