Which command is used to update the database to the latest migration?

  • Add-Migration
  • Drop-Database
  • Get-Migration
  • Update-Database
The Update-Database command is used in Entity Framework to update the database to the latest migration. It applies any pending migrations that have not been applied to the database yet, ensuring that the database schema is synchronized with the current state of the application's data model.
Add your answer
Loading...

Leave a comment

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