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 my database, create a new initial migration and produce a new clean db with it.
However the dnx ef commands do not have a command that I know of that will facilitate this. How do I proceed?
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>
来源:https://stackoverflow.com/questions/32009617/reset-entity-framework-7-migrations