如何从“模型优先”创建数据库模型?
我一直在尝试遵循一些关于如何使用 MVC 中的模型优先方法创建数据库的教程。我已经在设计器中创建了实体并尝试从模型生成数据库。它可以很好地创建 SQL 文件,但我似乎无法执行它?我没有选择这样做吗?当我右键单击该文件时,执行选项不可用,当我打开文件并在上下文中右键单击时,该选项不可用。我尝试连接到一个空白数据库,然后使用模型实体在此数据库上创建实体模型,然后尝试从模型生成数据库,但仍然没有选择从 VS2010 Express 中执行 sql。它不存在有什么原因吗?
谢谢
I have been trying to follow the few tutorials on how to create a DB using the model first approach in MVC. I have gone as far as creating Entities in the designer and trying to generate a DB from the model. It creates SQL file fine but I cant seem to execute it? I have no option to do so? When I right click the file the execute option is not available and when I open the file and right click in the context the option is not available. I have tried connecting to a blank DB and then creating the Entity Model on this DB with model entities and then trying to generate a DB from the model but still no option to execute the sql from within VS2010 express. Is there a reason why its not there ?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这是因为 VS2010 Express 的功能有限。
我记得在一次网络训练营期间,我在 VS2010 Express 中遇到了其他一些“禁用”选项,微软的演示者告诉我,他们这样做是为了让你尝尝,然后你想购买专业版。
我找不到比较所有功能的完整列表,但这就是此页面的外观: http ://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express#Visual_Basic_Express
I believe it's because VS2010 Express has limited features.
I remember coming across some other "disabled" option in VS2010 Express during one of the Web Camps and the presenter at Microsoft told me that they do that to give you a taste, then you want to buy the professional edition.
I couldn't find a full list comparing all the features, but that's what it looks from this page: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express#Visual_Basic_Express