Reset Entity Framework 7 migrations

前端 未结 1 935
无人共我
无人共我 2021-01-02 12:39

I\'m using Entity Framework 7 beta 5. I started with the mvc template with user management. I have added several migrations, during my trials.

Now I want to delete

相关标签:
1条回答
  • 2021-01-02 13:26

    What exactly do you need support from EF for? Here's what I'd do:

    • Delete your database
    • Delete all your migrations
    • Configure the context to point to your new, clean database
    • Run dotnet ef migrations add <initial-migration-name>
    0 讨论(0)
提交回复
热议问题