You've modified the properties of the IdentityUser class in your ASP.NET Core project. Before deploying these changes to production, which of the following steps is crucial to ensure the database reflects these modifications?

  • Delete the existing database and recreate it
  • Run Entity Framework Core's "Add-Migration" command
  • Manually update the database schema
  • No action needed
To ensure the database reflects the modified IdentityUser class, you should run Entity Framework Core's "Add-Migration" command. This command generates a new migration containing the necessary SQL scripts to update the database schema to match the changes made to your model.
Add your answer
Loading...

Leave a comment

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