Oct 07, 2018 05:27 PM|gadsweb|LINK
For me it doesn't seems to be a bad idea.
What I did in the past with a project is to hardcode the environment type (Test,demo,prod) in the Main class.
With a switch statement I got the connection string from the config file. Each environment had a different name and a different "look". It doesn't matter if the config file has changed, in the worse case, it doesn't work :-)
Another way would be to store the connection string (at least db) in a dedicated table of the db, and as an exemple use the build number to retrieve the correct db to use, but it seems to be a mess...