如何在WinForm下使用ConnectionStrings
1.先添加引用System.Configuration
2.在app.config中添加命名空间using System.Configuration;
3.获取ConfigurationManager.ConnectionStrings["MyConn"].ToString();
1.先添加引用System.Configuration
2.在app.config中添加命名空间using System.Configuration;
3.获取ConfigurationManager.ConnectionStrings["MyConn"].ToString();