EF4: Why does proxy creation have to be enabled when lazy loading is enabled?
问题 I have a project structured as follows: .Persistence -> .Repo -> .Services -> .Controllers -> MVC3 App. Each layer has a respective assembly with interfaces and there's also some other assemblies like .Entities, .ViewModels, and common code assemblies. Persistence - This holds the EF4 datacontext (code-first) and a reference to EF4.3. There's a factory for creating the Context called GetContext() and this factory implements IDisposable. It is NOT a singleton cause I figured that's what