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

相关文章:

  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2021-12-10
  • 2022-01-16
  • 2021-07-03
猜你喜欢
  • 2021-06-08
  • 2021-07-25
  • 2021-08-07
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案