You are developing an application using Entity Framework, and you want to define the data model using C# classes. Which approach would you choose?

  • Code-First
  • Database-First
  • Designer-First
  • Model-First
Code-First is the preferred approach when defining the data model using C# classes in Entity Framework. With Code-First, you write the C# classes first, and the database schema is generated based on these classes. This approach provides more flexibility and control over the database schema and allows for easy migrations and version control.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *