Application can't scaffold items

后端 未结 29 1341
自闭症患者
自闭症患者 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条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 02:25

    I tried most of the above without luck.

    What finally worked was:

    1. Delete the previously dynamically created string entry
    2. Delete my model (keeping all controllers and views)
    3. Recreate the ADO.NET Entity Data Model - using the same name, creating a new connection string entry with the same name as before

    Then everything worked again, minus 3 hours of development time.

    1. re-add (from a backup) all of my property attributes to the table/entity classes

    Seems to have something to do with the dynamically created connection string and the model. Would appreciate any thoughts on what could have happened.

提交回复
热议问题