public void OpenCnn()
 {
     if (Cnn == null)
     {
         GetDbConnection();
         Cnn.Open();
         CnnIsOpen = true;
     }
 }
예제 #2
0
 /// <summary>
 /// Open connection
 /// </summary>
 /// <returns>True is open successfull else false</returns>
 protected bool Open()
 {
     try
     {
         if (Cnn.State == ConnectionState.Closed)
         {
             Cnn.Open();
         }
         return(true);
     }
     catch { return(false); }
 }
예제 #3
0
 public bool Open()
 {
     Cnn.Open();
     return(true);
 }