Revert to Entity Framework 6.2, then get Initial Migrations Setup, Add the first migration, and Update the database

In this video, we end up downgrading Entity Framework to EF 6.2 due to a small bug or limitation. This will be just fine for our course.

The commands to rollback

Uninstall-Package EntityFramework -Force

and

Update-Package EntityFramework -version 6.2.0

After we get Entity Framework fixed, we need to run the commands for enabling migrations:

Enable-Migrations -EnableAutomaticMigrations

Then we run

add-migration "Initial_Identity_Migration"

And then update the database:

update-database


By the end of the video, we have our database setup and working as expected.

Discussion

0 comments