EntityFramework Migration Specify web.config
asp.net-mvc, entity-framework, entity-framework-5
Solution
That's because web.config is where the connection string should be found. `Web.release.config` and `Web.debug.config` are configuration transformations based on the current "Solution Configuration". See this MSDN article for details.
The short answer is, of course the connection string is expected to be in Web.config, because that's where it's designed to live.
You can use the -ConnectionStringName or -ConnectionString parameter on Update-Database to specify a different connection for the migrations.
Problem
I am using MV4 and EF5. Is there a way to have EntityFramework Migration pull the connection string from web.debug.config or web.release.config. Running update-database seems to throw an error unless the connection string is in web.config