How do you usally do when you have 2 different databases, one for development and one for the release? The databases is identical. I need a way to have one of the databases connected to the release version and one connected to the development/testing version.
There has to be a easy way to do this that i just dont know about?
How do you usally do when you have 2 different databases, one for development
Share
There are so many ways to do this, and the first is to manually edit your app or web config file.
You could also maintain several copies of your app config. It is very typical to have a seperate app.config values for dev, qa, and production. You can then use the post-build events to rename or otherwise setup the output you want.
You can also use conditional compilation to detect if you are debug vs release, and pull your connect string from a different app setting.