1
Answer

separate config files?

Lisa M

Lisa M

16y
2.4k
1
I'm looking to have my application accept a command line argument to specify if the user wants to use the training system or the live system. What is best practive for the db connection string?

Should I store 2 in the config and set the connection string globally based off the command line?

Or can I have 2 config files and switch which I read from?

Help is appreciated!
Answers (1)