dotnet connection strings

Postgres connection strings a standard thing right? Sure, the same in any orm that can connect to postgres. oh, wait, Entity Framework can connect to postgres


Hmm, I guess I can inject some secrets and build a connection string, or slice up the env variable from flyctl postgres attach, but I’d rather not.

Feature request, can we have a dotnet friendly postgres connection string plopped into our env variables?

Bonus feature request; add a dotnet tag to these forums.

Hi @user97

Parsing the provided connection string seems to be common on a few platforms, I found a relatively quick and simple code snippet that should help you with the connection string.

postgresql - Connecting to Heroku Postgres Database with Asp.Net - Stack Overflow

1 Like