开发者

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

开发者 https://www.devze.com 2022-12-31 15:14 出处:网络
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 parameter

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

精彩评论

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