Tallan's Blog

Tallan’s Experts Share Their Knowledge on Technology, Trends and Solutions to Business Challenges

Posts Tagged "Entity Framework 7"

Entity Framework 7 Migrations and Source Control

When I first came across migrations in Entity Framework 6 I thought it was a fantastic way to track data model changes in a project.  This thought lasted until my team started to share and sync these migrations through source control.  Anyone that has attempted to use migrations on a development team will agree that it is very cumbersome to sync database changes across development environments.  Searching “on the line” for difficulties in using migrations on a team, you quickly find links to pages such as this, an MSDN article about how hard syncing EF migrations really are.  Most of the issues with EF6 migrations are due to the dependence on the __EFMigrationsHistory table EF6 creates and uses when creating migrations.  Since there was no easy way for devs to share this table, if two devs made changes since the most recent checkin there would…