Your team is starting a new project where you have an existing database, and you wish to generate your data models based on this database. Which approach in Entity Framework Core would be most suitable?

  • Code-First
  • Database-First
  • Model-First
  • Entity-First
In this scenario, the most suitable approach is "Database-First." This approach involves generating data models based on an existing database schema. Entity Framework Core provides tools like scaffolding to create models from an existing database, making it easier to work with legacy databases in your ASP.NET Core project.
Add your answer
Loading...

Leave a comment

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