Which Entity Framework feature allows you to define the structure of your database in code?

  • Code-First
  • Database-First
  • Model-First
  • Schema-First
Code-First is an Entity Framework feature that allows developers to define the structure of the database using code, typically through the use of Plain Old CLR Objects (POCO) classes. With Code-First approach, developers define their domain classes first and then generate the database schema from these classes. It offers flexibility and control over the database design and is suitable for scenarios where developers prefer to work primarily with code rather than visual designers.
Add your answer
Loading...

Leave a comment

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