找不到名称为****的dbo

时间:2017-10-09 08:38:52

标签: c# asp.net asp.net-mvc entity-framework

我在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'。

我尝试在项目中找到它并进行清理和重建。没有用。

我如何解决这个问题?

0 个答案:

没有答案
相关问题