简体   繁体   中英

MVC4 EF5 My Context won't show up when I'm creating a controller

My Context shows up properly when Entity Framework 6.1.3 installed but since scaffolding isn't supported in Entity Framework 6 I had to downgrade it to version 5.0.0. Now when I try to create a new controller my context isn't listed in the drop down list in Data Context Class:

Is this some sort of bug ? Image HERE

What's even more surprising is that it works on a copied version of the same solution.

我通过重新构建解决方案来修复它,重新安装了Entity Framework 5.0.0,然后在添加控制器时在数据上下文列表中手动键入我的上下文。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM