My application works perfectly in that I work locally then publish to Azure, Code First handles all the database updates etc
However, I have a method in a class that does a SQL Bulk Copy and to get it working I used a hardcoded connection string
Now I need a neat way to have it 'auto switch' for me. So that when I deploy it automatically uses the LIVE Azure connection string and not the local database
i.e. here is an extract from the line I need to replace with say a application variable
Whats the neatest approach one could recommend for doing this :
using (SqlBulkCopy sbc = new SqlBulkCopy(@"Data Source=WIN2008-VM;Initial Catalog=AscxxxCF;User Id=exxxer;Password=suxxnx;Integrated Security=True", SqlBulkCopyOptions.Default))
{