I have an ASP.Net Core app on my local machine that uses postgresql. So I need to connect my postgresql database running in a docker container.
I connect to this db with pgAdmin, but when I set the connection string on my app and run the command dotnet ef database update
, it shows the following error
IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address.
My connection string looks like this
host=0.0.0.0;port=54320;database=mydatabase;user id=postgres;password=mypassword