Esempio n. 1
0
 public void OpenConnection()
 {
     try
     {
         connection.Open();
     }
     catch (SqlExceptions ex)
     {
         throw ex = new SqlExceptions("Error while connectiong");
     }
 }
Esempio n. 2
0
 public void CloseConnection()
 {
     try
     {
         connection.Close();
     }
     catch (SqlExceptions ex)
     {
         throw ex = new SqlExceptions("Error while disconnectiong");
     }
 }