Model First database generator freezes my Visual Studio

梦想与她 提交于 2019-12-11 03:54:40

问题


I'm new to the Entity Framework, and I know this is not suppose to happen, but maybe it is a known issue in the community so I thought I'd ask.

I created my model with 2 entities. When I wanted to create the database tables Visual Studio froze on me. I ran the script myself but then I needed to modify an attribute so it'd take null values, and againg I can't impact my new model to the database.

I looked for upgrades or anything with no luck. Is anybody experiencing anything like that?


回答1:


I'm experiencing this as well, even with a model with a single entity. I installed the Entity Designer Database Generation Power Pack and tried various generation strategies, but with no luck.

The Generate Database Wizard gets as far as to display the DDL, but when Finish is clicked VS freezes with CPU activity at 100%... for hours. Upon killing the process and opening the solution, the model.edmx.sql is present, but opening it begins the 100% CPU activity and freeze again.




回答2:


As I told Joel I unisntalled my Visual Studio Premium and installed Ultimate, and guess what?! the problem is now fixed... the wizard finishes and I can see .sql file...

So, I don't know if it is one of those uninstall and install again issues or is it a bug with the Premium flavour, (very unlikely) but for me it solved after installed the Ultimate version



来源:https://stackoverflow.com/questions/3919565/model-first-database-generator-freezes-my-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!