I am using EF Code first to generate my models. I have added SQL Server Compact Edition to my project and am using that as a DB locally.
I want to configure the DataContext so that when I push to Production (based on the machine name) it instead would pull from a connection string in the Web Config and use a SQL Server 2008 DB.
What is the easiest way to do this? Basically my question is at what point do I need to add the conditional so that when it is deployed it pulls in the connection string and just works.
Is this even a recommended approach?