MVC3 and Code First Migrations - “model backing the 'blah' context has changed since the database was created”

后端 未结 2 1542
北海茫月
北海茫月 2020-11-27 05:14

I started off my project by using Entity Framework Code First. When I was ready I uploaded my database and code to my host provider. Everything worked.

I need to add

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 05:54

    I think in step 6 you need to run Update-Database -Verbose

    Also this link is very helpful for updating database in EF with Scaffolding http://www.asp.net/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-entity-framework-scaffolding-and-migrations

提交回复
热议问题