Hi @Jon Jacobs ,
If you are using Code First for data migration, and you modify the Model after executing it once, you can follow the commands below.
1.Enable-Migrations -EnableAutomaticMigrations –Force
The execution of Enable-Migrations may be interrupted due to an error. At this time, you need to run the parameter-added command -Force.
2.Add-Migration Initial
The Add-Migration command scaffolds your changes into a cs file. This cs file is placed in the same folder as the configuration file for the DbContext you are targeting.
3.Update-Database -Verbose
Then you use Update-Database to update the database. Specify the -Verbose flag so that you can see the SQL that Code First Migrations is running.
You can refer to Code migration.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
ChaoDeng