trash_coder
Aspire + EF Core
Anyone playing around with Aspire?
I want to like it but I'm having a hard time coming up with a sane way to manage the database in Aspire.
1. I dont think the database is persistent between coding sessions which means I have to run a migration each time I bring up the app
2. I cant seem to specify a connection string when running
dotnet ef database update --project <my_proj> --connection "conn str"
it just wigs out about a empty connection string. Since the connection string is ephemeral and changes between runs, I cant really throw it in appsettings.json
without needing to tweak it each time I restart the project
Anyone run into these things and find a sane workaround?6 replies