Before updating scaffolding from new db schema try creating a
Migrations is actually what this blog post was about, and now we’re getting closer to it.
First off all, we need to enable migrations for the Data Access project.
I totally clean it, deleting the default Class1file and then install the Entitiy Framework package, via the Package Manager Console: PM Install-Package Entity Framework Installing 'Entity Framework 5.0.0'.What we’re looking at is migrations, and the first migration contains the entire database schema as it looked when the application was first released and used.Let’s use the Add-Migration command to create the initial schema: PM Add-Migration Initial Scaffolding migration 'Initial'.If you do not accept the license agreement(s), then delete the relevant components from your device. It defines a number of Db Set properties that you can access from code (using LINQ), but more importantly it tells Entity Framework how to create the database.This is the holy grail of “Code First Development”.