You need to make changes to the database schema while keeping the existing data intact. Which feature of Entity Framework Code-First should you use?

  • Code Migrations
  • Data Annotations
  • Database Initializer
  • Fluent API
Code Migrations is the feature of Entity Framework Code-First that allows you to make changes to the database schema while preserving the existing data. Code Migrations automatically updates the database schema based on changes made to the C# classes, making it easy to evolve the database schema over time without losing data.
Add your answer
Loading...

Leave a comment

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