从EntityObject为什么我们不能得到的ObjectContextEntityObject、ObjectContext

2023-09-02 10:33:47 作者:温柔行凶者

是公知,如果我们有一个EntityObject没有的方式找到的ObjectContext它属于。这是不够公平我猜测,但为什么它,我们可以延迟加载的对象呢?当然延迟加载的过程中获得,以加载新的对象访问ObjectContext的?

It is well know that if we have an EntityObject that there is no way to find the ObjectContext that it belongs to. That's fair enough I guess, but why is it that we can lazy load objects then? Surely the process of lazy loading has to get access to the ObjectContext in order to load the new objects?

推荐答案

其实你可以得到的ObjectContext EntityObject :它被描述这里 ..

Actually you can get ObjectContext from EntityObject: It is described here..