Application can't scaffold items

后端 未结 29 1310
自闭症患者
自闭症患者 2020-11-30 01:57

I created an MVC 5 application in VS 2013 Professional and then used EF 6.1 code first with an existing DB on SQL Server Express. When I try to create the views I’m using th

29条回答
  •  旧时难觅i
    2020-11-30 02:11

    This may help resolve your error.

    In my OnModelCreating i was doing this for each entity:

    modelBuilder.Configurations.Add(new EntityTypeConfiguration);
    

    When i changed it to the following i stopped getting the error you are receiving.

    modelBuilder.Entity();
    

提交回复
热议问题