开发者

CodeFirst & EDMX in the same application

开发者 https://www.devze.com 2023-03-02 23:55 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消