dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.37k stars 350 forks source link

Support appending custom connection string options to some resources #2964

Open davidfowl opened 3 months ago

davidfowl commented 3 months ago

Today connection strings are owned by the resource type but sometimes they need to be appended to set other options (MARS in sql for example). We should allow apps to append to the connection string expression in WithReference or at the resource level (where it makes sense).

Today this is doable with manual logic but it might need to be more first class.

Kralizek commented 2 months ago

Another use case besides enabling MARS is enabling special logging on PostgreSQL (see)