简体   繁体   English

entityFramework CreateSourceQuery

[英]entityFramework CreateSourceQuery

Im using SelfTrackingChanges and on relationship end "MANY" I havent got CreateSourceQuery() method :/ 我正在使用SelfTrackingChanges,在关系结束“很多”时,我还没有CreateSourceQuery()方法:/

Is there any way I can achieve that still using SelfTrackingChanges ? 有什么办法可以仍然使用SelfTrackingChanges来实现?

thanks for any help 谢谢你的帮助

Only EntityCollection<TEntity> and EntityReference<TEntity> classes override the IRelatedEnd.CreateSourceQuery as they implement IRelatedEnd interface and they both found on the EntityObjects which means you don't have it on your STEs and POCOs. 只有EntityCollection<TEntity>EntityReference<TEntity>类会覆盖IRelatedEnd.CreateSourceQuery,因为它们实现了IRelatedEnd接口,并且它们都在EntityObjects上找到,这意味着您在STE和POCO上没有它。 What are you really trying to accomplish? 您真正想完成什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM