我试图与实体框架使用MVC3用code第一,但在MS的Visual Web Developer 2010 code ++模板生成过程 - 没有检测我在模型中的文件夹模式 - 给一个信息 - 无模型类可用 - 尽管我确实有模型类,我想创建控制器
I am trying to use MVC3 with the Entity framework with Code First, but the code Template generation process in MS Visual Web Developer 2010 - is not detecting my Model in the models folder - giving a message - "No Model classes are available" - although I do have model classes for which I want to create controllers.
我选择的模板选项是读与控制器/写使用实体框架的行动和意见。
The templating option I've selected is "Controller with read/write actions and views using the Entity Framework".
我已经卸载并重新安装Web开发2010年,但仍然有同样的错误。
I've uninstalled and reinstalled Web Developer 2010, but still having the same error.
任何人都知道我怎样才能解决这个问题?
Anyone know how I can get around this error?
推荐答案xixonia的回答为我工作。所有我需要做的是建立/重建项目,然后一切都如预期。
xixonia's response worked for me. All I needed to do was build/rebuild the project and then everything worked as expected.
更多推荐
MVC 3及ASP.Net与实体框架脚手架错误:没有模型类可用
发布评论