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
Available since 3.5
Return to top
Show: