I have an application written in ASP.NET and using EF. I want to make a copy of the live database, have my application point to the copy, and be able to run the application against it as if it is live…but making updates to the copy.
I know I can manually copy the database and manually update the web.config files…but I’m wondering if there is a better, more automated method for achieving this with VS 2010?
Also, if there is anything I need to know about setting up a live/dev version of a database while using EF4.
You can switch the
ConnectionStringto point to the live or development database.One way is to have different web.config files for
debugandreleasebuilds.Check out Web.config Transformation Syntax for Web Application Project Deployment