I have a "legacy" EDMX-based EF model, and a newer CodeFirst model. I want to be able to incrementally migrate an application from the EDMX to the CF, having both in use at the same time. Having both models operating in the same AppDomain seems 开发者_JAVA技巧to cause problems. Things work okay with one model until the other model is used, and then everything goes to hell with mapping errors, and remains in that state until the AppDomain is recycled. For the moment, I have segregated the two models in two different web service applications. This works fine, but is not ideal. Is there any way to get them to cooperate in the same AppDomain?
Take a look at this discussion on MSDN forums. Hopefully, this information is helpful.
This problem seems to have "fixed itself" in the last few EF refreshes. No longer a problem for me.
精彩评论