To update seeded data in an existing database, you need to modify the seeding logic and then run the ________ command.

  • Add-Migration
  • EnsureCreated
  • Seed-Database
  • Update-Database
To update seeded data in an existing database, you need to modify the seeding logic and then run the Update-Database command. This command applies any pending migrations, including changes to seeded data, to the target database. It ensures that the database schema and data are kept in sync with the latest changes in the application's model.
Add your answer
Loading...

Leave a comment

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