开发者

How do I upgrade an existing EDMX 1.0 model to the new EDMX 2.0?

开发者 https://www.devze.com 2022-12-25 01:48 出处:网络
I\'d like to upgrade an existing EDMX model without having to regenerate it by hand. The database is o开发者_JAVA百科ld, contains virtually no foreign keys and has many tables that had to be merged in

I'd like to upgrade an existing EDMX model without having to regenerate it by hand. The database is o开发者_JAVA百科ld, contains virtually no foreign keys and has many tables that had to be merged into single entities. I would like to use the EDMX 2.0 that comes with Visual Studio 2010, but I do not want to recreate the model by hand as that would put us way behind schedule.

Any suggestions?


Open your old project in VS 2010. Then just change Target Framework from 3.5 to 4.0 in your project settings. In this case the .edmx file will be updated automatically.

0

精彩评论

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