-
Notifications
You must be signed in to change notification settings - Fork 416
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
Add option to Starter template to include a database with EF Core and migrations #4206
Comments
There's also the web-based example we have at https://github.com/dotnet/aspire-samples/tree/main/samples/AspireShop/AspireShop.CatalogDbManager |
I think we should consider another sample template that's crud + EF + postgres, showing how to use migrations etc. |
Or we could just add it to the existing starter template, potentially as an option. |
Strawman with some open questions: We get a lot of feedback about what patterns work well to configure, initialize, and manage a database using EF Core as part of an Aspire app. We have some samples and documentation on this but we should take this guidance to the next level and include it in our starter template. Rough idea of what this would include:
|
Yes, we should do the DB stuff in existing API not from the front end directly. |
Based on https://github.com/dotnet/aspire-samples/tree/main/samples/DatabaseMigrations/DatabaseMigrations.MigrationService with placeholders for provider-specific code
The text was updated successfully, but these errors were encountered: