Different Ways Of Designing Data Model | Entity Framework Interview Question

,

Entity Framework provides several ways to design a model.

  • Model first: Uses a designer to define a model, and then generates a database based on the model
  • Database first: Creates a model based on a database schema
  • Code first: Allows you to use a plain old C# object (POCO) as a model, and then connect it to the Entity Framework using a class derived from DbContext