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