开发者

how can I swap Entity Framework connection strings easily when I test on different servers (i.e. different databases)

how can I swap Entity Framework connection strings easily when I test on different server开发者_如何学Gos (i.e. different databases) - at the moment it is a bit tedious going into the design parameters and trying to swap back and forth each time I change.


Use the ObjectContext constructor that takes a name of the app.config entry and hold several app.config entries for the necessary databases.


Is this a web app? If so you can use web.config transforms.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜