I manually change my configSource to point to a local SQL Server or an SQL Azure server, as needed, during development. I would like for my code to find out the value of the configSource so that my code knows what database server is being used.
Using C#, how do I get the current configSource value?
Note that this is not the same as getting the configSource for a Windows application! That way will not work in ASP.NET!