Storing database settings outside app.config

Posted by Piers on Stack Overflow See other posts from Stack Overflow or by Piers
Published on 2010-12-29T15:49:33Z Indexed on 2010/12/29 15:53 UTC
Read the original article Hit count: 251

I've been writing a c# exe that will be running on a live web server, but I want to be able to test it on our staging server. Since the staging server has different database settings (in the app.config) from my localhost, is there any way I can store the connection string outside the app.config so that I can easily get to it?

Also, is it possible to store the database connection string, then access it via the app.config? This might sound odd, but I'm using a dll from a CMS that uses the value in the .config file.

© Stack Overflow or respective owner

Related posts about c#

Related posts about app-config