stuck in EF migration limbo

后端 未结 7 1536
慢半拍i
慢半拍i 2020-12-20 10:58

i have somehow gotten my EF5 project into a state where I can\'t proceed.

When I do an \'update-database\' i get:

Unable to update database to

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-20 11:38

    For me the issue was that we had renamed the namespace of the migration 2014123456_Initial.cs.
    But VS had not regenerated the namespace in its associated 2014123456_Initial.Designer.cs.

    Once the Designer.cs was changed to use the same namespace, it all started working again.


    (also posted this as an answer here because both questions are so similar)

提交回复
热议问题