© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
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"
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
appsettings.json
without needing to tweak it each time I restart the project

Anyone run into these things and find a sane workaround?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Aspire EF Core Migrations - Deployment to Azure?
C#CC# / help
3mo ago
.NET 9 - EF Core + Aspire - Database seeding
C#CC# / help
9mo ago
EF Core
C#CC# / help
2y ago
Ef core help
C#CC# / help
10mo ago