codemo

 public static  SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);

 

  if (conn.State ==ConnectionState.Closed)
    {
            conn.Open();
    }

 

一定要在打开前判断.


  

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-03-05
  • 2021-11-28
  • 2021-12-02
  • 2022-01-20
  • 2021-05-19
  • 2021-08-30
  • 2021-11-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
相关资源
相似解决方案