Statistics
The Highest Post







Statistics
Count 94
Avg 21.00
Min 21
Max 21

Details



Peter Agyekum What is difference between Code First and Model first approach ? Code First approach : Whether you have an existing database or not, you can code your own classes and properties that correspond to tables and columns and use them with Entity Framework without an .edmx file. In this approach Entity Framework does not leverage any kind of configuration file (.edmx file) to store the database schema, because the mapping API uses these conventions to generate the database schema dynamically at runtime.Code first approach is used to fast development and developer has full controls on entities.Model First approach : We don't have an existing database and the Entity Framework offers a designer that can create a conceptual data model. It also uses an .edmx file to store the model and mapping information. When the model has been created then the Entity Framework designer can generate the database schema that can be used to create the database.
Related Topics