Skip to content

Update seeding data article to Aspire 9.3 #3720

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

Merged

Conversation

alistairmatthews
Copy link
Contributor

@alistairmatthews alistairmatthews commented Jun 10, 2025

Summary

The WithCreationScript() method is now supported for PostgreSQL and MySQL. In MySQL, you can use it for data seeding. In PostgreSQL, you can only execute operations on the default database (e.g. you can create a new database but can't change to it) so it's not a seeding solution. I've documented these in the seed-database-data.md article.


Internal previews

📄 File 🔗 Preview link
docs/database/seed-database-data.md Seed data in a database using .NET Aspire

Copy link
Contributor

@adegeo adegeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Approved to unblock, but here are some things to consider.

@IEvangelist IEvangelist merged commit 18c266a into dotnet:main Jun 17, 2025
7 checks passed
@alistairmatthews alistairmatthews deleted the update-seeding-data-article-9.3 branch June 17, 2025 14:42
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.

3 participants