我想在 mvc 4 中创建控制器(与 2012 相比)
“使用实体框架进行读/写操作和视图的 MVC 控制器”
但我不能选择我的模特班。
我的模特班
public class Authorss
{
public int id { get; set; }
public string name{get;set;}
}
public class ModelContext : DbContext
{
public DbSet Authors { get; set; }
}