Επεξεργασία

Κοινή χρήση μέσω


RelatedEnd.IRelatedEnd.CreateSourceQuery Method

Definition

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

 virtual System::Collections::IEnumerable ^ System.Data.Objects.DataClasses.IRelatedEnd.CreateSourceQuery() = System::Data::Objects::DataClasses::IRelatedEnd::CreateSourceQuery;
System.Collections.IEnumerable IRelatedEnd.CreateSourceQuery ();
abstract member System.Data.Objects.DataClasses.IRelatedEnd.CreateSourceQuery : unit -> System.Collections.IEnumerable
override this.System.Data.Objects.DataClasses.IRelatedEnd.CreateSourceQuery : unit -> System.Collections.IEnumerable
Function CreateSourceQuery () As IEnumerable Implements IRelatedEnd.CreateSourceQuery

Returns

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

Implements

Remarks

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.

Applies to