Ejemplo n.º 1
0
        public bool Delete(DBObject.Key key)
        {
            bool success = true;

            try
            {
                _iDatabase.BeginTransaction();
                _iSpeciesAttributeChoiceTable.DeleteByKey(key.id);
                _iSpeciesAttributeSizeTable.DeleteByKey(key.id);
                _iSpeciesTable.DeleteByKey(key.id);
                _iAttributeChoiceTable.DeleteByKey(key.id);
                _iAttributeTable.DeleteByKey(key.id);
                _iLiteratureTable.DeleteByKey(key.id);
                _iKeyTable.Delete(key);
                _iDatabase.CommitTransaction();
            }
            // Warning warning => error logging
            catch
            {
                _iDatabase.RollbackTransaction();
                success = false;
            }

            return(success);
        }
Ejemplo n.º 2
0
 public void Update(DBObject.Key key)
 {
     _iKeyTable.Update(key);
 }
Ejemplo n.º 3
0
 public void Insert(DBObject.Key key)
 {
     _iKeyTable.Insert(key);
 }