At my company everyone uses Windows. We have some template projects that we use when developing for clients. I dislike working on Windows, so I use a Mac, which causes a problem.
All template projects here have been setup to use LocalDB as SQL server in the appsettings.json
file. LocalDB is Windows-only, thus I want to use a Docker container with MSSQL instead.
I want to be able to change the connection string without changing the appsettings.json
file, as it would cause problems with all other developers on the project (who uses Windows).
{
"ConnectionStrings": {
"Connect": "Server=(localdb)\\mssqllocaldb;Database=Connect;Trusted_Connection=True;MultipleActiveResultSets=true"
}
}
I want to use the following connection string:
Server=127.0.0.1,1433;Database=Connect;User Id=SA;Password=mySecur3!Password