How to refresh the View Data Class combobox in Visual Studio 2010? (MVC 2.0)
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()
{
register开发者_运维技巧Date = 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; }
}
}
You mean in the Add View dialog?
Recompiling the entire application should solve the problem.
精彩评论