Seeding a Database in Entity Framework

added by kalyanms1
5/2/2013 11:57:03 PM

1 Kicks, 78 Views

The code-first approach of Entity Framework creates the database in LocalDB instance of SQL Server Express. The Entity Framework uses the model’s property names and data types to create the tables.Entity Framework uses EdmMetadata table to synchronize model classes with the database schema. To keep the database in sync with the model you need to re-create an existing database using Entity Framework. EF allows you to create the database every time when application starts or only create when it detects a change in the model.


0 comments