【发布时间】:2013-03-14 00:00:05
【问题描述】:
我正在使用 MV4 和 EF5。有没有办法让 EntityFramework Migration 从 web.debug.config 或 web.release.config 中提取连接字符串。
除非连接字符串在 web.config 中,否则运行 update-database 似乎会引发错误
【问题讨论】:
-
查看
System.Configuration.ConfigurationManager.ConnectionStrings
标签: asp.net-mvc entity-framework entity-framework-5