How to vary connection string for different work locations

后端 未结 7 2027
情话喂你
情话喂你 2021-02-10 15:55

I am working on a C# 4.0, WPF 4.0, SQL 2008 project and I do work at home and in the office. I just setup SubVersion using Visual SVN per the recommendations found in other ques

相关标签:
7条回答
  • 2021-02-10 16:37

    In source control, use the connection string in app.config that is used for the most commonly used connection string (likely to be work).

    At home, hijack (or checkout) the file that selects which connection string to use, and edit it to use your home connection string.

    0 讨论(0)
提交回复
热议问题