I am currently using a common database model for our development. I know that it is better to use local development databases to properly manage database versions without one developer violating all other codes. So I'm trying to get there. However, I have a question about the web.config file. How can I guarantee that every time each developer has his own local development database, he does not need to manually change the database connection string every time he receives an update from the control source? What is the best way to do this?
For example, let's say Johnny Dev takes his web.config file, which contains a connection string, such as:
server=JohnnysBox;database=JohnnyAppDev1;
So, now Susie Dev is getting the update, and she should change her connection string to this:
server=SUE;database=development;
So, now Susie and Johnny continue to write their own connection strings to the web.config file, and every time they get an update, they have to change the connection strings in all applications.
What is the best way to cope with this situation so that developers do not mess up the settings of the connection string to each other, but may require other changes to the configuration files for all other developers when necessary (for example, a new application configuration)?
source share