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