RelatedEnd.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 IRelatedEnd.CreateSourceQuery()

Return Value

Type: System.Collections.IEnumerable

An IEnumerable that represents the objects that belong to the related end.

This member is an explicit interface member implementation. It can be used only when the RelatedEnd instance is cast to an IRelatedEnd interface.

EntityCollection<TEntity> and EntityReference<TEntity> both override IRelatedEnd.CreateSourceQuery to return an ObjectQuery<T>. This query, 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: