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); }
public void Update(DBObject.Key key) { _iKeyTable.Update(key); }
public void Insert(DBObject.Key key) { _iKeyTable.Insert(key); }