Hi,@David Thielen. Welcome to Microsoft Q&A.
- To generate MigrationsHistory for the first time, you can use the following method Way 1: Use the following command in .NET Core CLI
dotnet ef migrations add AddBlogCreatedTimestamp
If you have multiple dbcontexts, you need to specify your dbcontext
dotnet ef migrations add AddBlogCreatedTimestamp --context="MyDbContext1"
Way 2: Use the following command in Visual Studio
Add-Migration AddBlogCreatedTimestamp
For more detailed information you can refer to the official documentation(Managing Migrations - EF Core | Microsoft Learn)
- If the generated MigrationsHistory does not match your expectations, you can customize your MigrationsHistory For more detailed information you can refer to the official documentation (Custom Migrations History Table)
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.