将实体框架EDMX转换为代码优先的工具 [英] Tool to convert Entity Framework EDMX to Code First

查看:106
本文介绍了将实体框架EDMX转换为代码优先的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有工具将edmx转换为代码优先?
我知道有一次在CTP中出现的一个问题,但是我找不到与此相关的任何更新。



有一个人在 MSDN论坛谁编写了自己的(还没有),但没有从EF团队。

解决方案

没有这样的工具,因为EDMX提供了更多的功能,无法将其转换为代码优先。唯一可用的工具是 EF Power Tools CTP1 允许从现有数据库创建代码优先映射,但它将仅创建数据库的1:1映像=基于数据库的命名,不继承,不分裂等。电源工具还允许从现有代码创建只读EDMX -first映射。


Is there a tool to convert an edmx into code-first? I know there was talk of one appearing in a CTP a while back, but I can't find any updates relating to this.

There's a guy on the MSDN forums who has written his own (not available yet), but nothing from the EF team.

解决方案

There is no such tool because EDMX offers much more features which cannot be translated into code-first. The only tool available are EF Power Tools CTP1 which allow creating code-first mapping from existing database but it will only create 1:1 image of your database = naming based on database, no inheritance, no splitting, etc. Power tools also allow creating read only EDMX from existing code-first mapping.

这篇关于将实体框架EDMX转换为代码优先的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆