阅读背景:

不同环境的独立连接字符串

来源:互联网 

In my VB.NET windows application code I created my own AppConfig class that holds the connection string to a SQL server database. I am about to move this program into production and was wondering if there is an easy way to have the program switch between a development connection string and a production connection string based on whether I am running the program through VS or running the deployed program. I was looking at preprocessing directives but couldnt figure it out. Thanks for the help.In my VB.NET windows application code I created




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: