开发者

How to refresh the View Data Class combobox in Visual Studio 2010? (MVC 2.0)

开发者 https://www.devze.com 2023-02-03 01:17 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号