Which of the following best describes the "Code First" approach in Entity Framework Core?

  • Database schema is generated from the code
  • Code is generated from an existing database schema
  • No code is required for database operations
  • Code is generated from a UML diagram
The "Code First" approach in Entity Framework Core involves generating the database schema from the code. Developers define their data models as C# classes, and EF Core creates the database schema based on these classes and their relationships. This approach is ideal for developers who want to start with their object model and have the database schema generated automatically.
Add your answer
Loading...

Leave a comment

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