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,它表示属于相关端的对象。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.