'Connnecting ADO.net connection string via sqlserver(in docker mac)

I manage to successfully create and connect to the database via azure_data_studio

docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=P@ssword1" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest

In ADO.net core I am supposed to provide a connection string.

I don't know how to create one. connetionString="Data Source=ServerName;Initial Catalog=Databasename; User ID=UserName;Password=Password"

// Would the string look like this. Is catalog the table name. String connectionString = "Data Source=(local);Initial Catalog=Northwind;" + "Integrated Security=true";



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source