1、app.config内增加参数<connectionStrings>
2、添加引用System.Configuration
3、获取参数字符串
1 string connectstr= ConfigurationManager.ConnectionStrings["SQLConnString"].ConnectionString;
更多参考:https://blog.csdn.net/e295166319/article/details/77839798
1、app.config内增加参数<connectionStrings>
2、添加引用System.Configuration
3、获取参数字符串
1 string connectstr= ConfigurationManager.ConnectionStrings["SQLConnString"].ConnectionString;
更多参考:https://blog.csdn.net/e295166319/article/details/77839798