Environment Independent Connection Strings
-
How can I dynamically determine which environment my code is running in? For instance I would like for my apps to dynamically determine if they need to use the DEV connection strings or Production connection strings (within my DAL). By doing so I would avoid having to manually edit connection strings every time I make changes to my app. Appreciate your help.
-
How can I dynamically determine which environment my code is running in? For instance I would like for my apps to dynamically determine if they need to use the DEV connection strings or Production connection strings (within my DAL). By doing so I would avoid having to manually edit connection strings every time I make changes to my app. Appreciate your help.
-
I am not sure if that would work because when we will publish the website the development copy of web.config will be promoted to production:( Or am I missing something? Thanks for your help.