如何在 Visual Studio 2010 中刷新“查看数据类”组合框? (MVC 2.0)
我在项目中添加了一个新模型,但无法在“添加视图”窗口的“查看数据类”组合框中选择它。我只看到 DB4O 类,它们是从 dll 文件导入的。
如何强制该菜单自行刷新?
谢谢你!
伊万
型号代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace YvanSoftware_V5.Models
{
public class Writer
{
public Writer()
{
registerDate = DateTime.Now;
}
public string username { get; set; }
public string password { get; set; }
public string email { get; set; }
public DateTime registerDate { get; set; }
//the birthday is nullable:
public DateTime? birthday { get; set; }
}
}
I added a new model in the project, but I cannot select it in the View Data Class combobox in the Add View window. I only see the DB4O classes, which are imported from a dll file.
How do I force that menu to refresh itself?
Thank you!
Yvan
Model code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace YvanSoftware_V5.Models
{
public class Writer
{
public Writer()
{
registerDate = DateTime.Now;
}
public string username { get; set; }
public string password { get; set; }
public string email { get; set; }
public DateTime registerDate { get; set; }
//the birthday is nullable:
public DateTime? birthday { get; set; }
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是说在“添加视图”对话框中?
重新编译整个应用程序应该可以解决问题。
You mean in the Add View dialog?
Recompiling the entire application should solve the problem.