RelatedEnd.IRelatedEnd.CreateSourceQuery 方法

定義

傳回 IEnumerable,它代表屬於相關端的物件。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

傳回

IEnumerable

IEnumerable,它代表屬於相關端的物件。An IEnumerable that represents the objects that belong to the related end.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 RelatedEnd 執行個體轉換成 IRelatedEnd 介面時,才能使用這個成員。It can be used only when the RelatedEnd instance is cast to an IRelatedEnd interface.

EntityCollection<TEntity>EntityReference<TEntity> 兩者都會覆寫 IRelatedEnd.CreateSourceQuery 來傳回 ObjectQuery<T>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.

適用於