MVC 3及ASP.Net与实体框架脚手架错误:没有模型类可用

编程入门 行业动态 更新时间:2024-10-28 21:30:16
本文介绍了MVC 3及ASP.Net与实体框架脚手架错误:没有模型类可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图与实体框架使用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与实体框架脚手架错误:没有模型类可用

本文发布于:2023-11-15 18:56:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1597104.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:脚手架   实体   框架   模型   错误

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!