我在db中有一个名为MediсalInsurance的表
我有控制器显示视图中的项目列表
private ApplicationDbContext db = new ApplicationDbContext();
// GET: MedicalInsurances
public ActionResult Index()
{
return View(db.MedicalInsurance.ToList());
}
这是IdentityModel
public System.Data.Entity.DbSet<RS_Main.Models.MedicalInsurance> MedicalInsurance { get; set; }
但是当我运行此View时出现此错误
SqlException:无效的对象名称'dbo.MedicalInsurances'。
我尝试在项目中找到它并进行清理和重建。没有用。
我如何解决这个问题?