如何将现有 EDMX 1.0 型号升级到新的 EDMX 2.0?
我想升级现有的 EDMX 模型,而无需手动重新生成它。该数据库很旧,几乎不包含外键,并且有许多必须合并为单个实体的表。我想使用 Visual Studio 2010 附带的 EDMX 2.0,但我不想手动重新创建模型,因为这会使我们远远落后于计划。
有什么建议吗?
I'd like to upgrade an existing EDMX model without having to regenerate it by hand. The database is old, 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 VS 2010 中打开旧项目。然后只需在项目设置中将目标框架从 3.5 更改为 4.0。在这种情况下,.edmx 文件将自动更新。
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.