Skip to content

Altered EF Core Migrations tutorial to ensure that API waits for the migrations to complete #3846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alistairmatthews
Copy link
Contributor

@alistairmatthews alistairmatthews commented Jun 18, 2025

Summary

Altered the code in the solution to use the WaitForCompletion() method to ensure that the API doesn't start until the migrations are completed. Also corrected the code line numbers to ensure the correct highlighting and upgraded to .NET Aspire 9.3.1.

This PR goes with the following PRs in the example repo and should be merge at the same time:

Upgrade solution to aspire 9.3 #9
Upgraded to .NET Aspire 9.3.1 #10

Fixes #3715


Internal previews

📄 File 🔗 Preview link
docs/database/ef-core-migrations.md Apply Entity Framework Core migrations in .NET Aspire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There appears to be a race in the apphost example code
1 participant