1

I'm using ASP MVC 4 and EF 4. I use the Package Manager Console to run Enable-Migration command. I then did some changes and run Add-Migration after each of them. I now want to clear all the small changes and re-create a single migration script.

How can I do that?

Where does EF remember the "last entity state" from which it derive the next Add-Migration script?

Thank you, Ido.

1 Answer 1

1

I have found that the Enable-Migration script create the _MigrationHistory table which store the migration already apply to the database. After I've delete the records in that table and the migration scripts from the Migration directory I've re-run Add-Migration and it create a single migration script.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.