예제 #1
0
 public override void delete(AbstractEntity entity)
 {
     try
     {
         connection.open();
         using (cmd = new OracleCommand(entity.queryDelete(), connection.get()))
         {
             cmd.ExecuteNonQuery();
         }
     }
     catch (OracleException)
     {
         throw new CompetitionDogException("Ошибка операции удаления");
     }
     finally
     {
         connection.close();
     }
 }