I have a project that uses EF code-first. It has automatically generated a DB from the model.
Now, I want to enable EF migrations.
The 'Getting Started' docs on EF Migrations suggest that in this scenario (DB already exists), two things should happen when calling
- the project gets updated with a Configuration.cs file (yup)
- an initial migration (corresponding to the current state of the DB) should be created (didn't happen).
This is the direct link: https://msdn.microsoft.com/en-us/data/jj591621.aspx#enabling
I don't get any initial migration when running the
Am I doing something wrong or is the documentation incorrect ?