Posted on: 1/15/2014 3:14:02 PM | Views : 655

I'm trying to set up different Connection strings in my web.config for debug and release builds.  I'm using VS2010.
I created the web.Debug.config and web.Release.config files and do not understand the comments or the code that gets put in there when you create the files.
It says:
In the example below, the "SetAttributes" transform will change the value of "connectionString" to use "ReleaseSQLServer" only when the "Match" locator finds an atrribute "name" that has a value of "MyDB".
I don't know what a Match Locator is.  
The default code that it put in web.debug.config is:
<connectionStrings> <add name="MyDB" connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" xdt:Transform="SetAttributes" xdt:Locator="Match(name)& ...

Go to the complete details ...