How to re-create initial migration on the same .cs file

后端 未结 4 1004
予麋鹿
予麋鹿 2021-02-13 23:29

As common in EF Code First I\'ve generated an \"Initial Create\" migration file where is located an outdated model of my db (I\'m developing the app so the model is still changi

4条回答
  •  独厮守ぢ
    2021-02-14 00:03

    My Project is Solved.
    Run in Package Manager Console:

    1. Drop-Database
    2. Remove-Migration
    3. Add-Migration InitialCreate
    4. update-database

提交回复
热议问题