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