// ---------------------------------------------------------------------------------------- public static void DeleteCompSubType(int id) { // backup the record to the history table before it's deleted //SaveHistoryRecord(id, "DELETED"); PetaPoco.Database db = new PetaPoco.Database("ElecLibConnString"); db.Delete<CompSubType>(id); }
// ---------------------------------------------------------------------------------------- public static void DeleteCompType(int id) { PetaPoco.Database db = new PetaPoco.Database("ElecLibConnString"); db.Delete<CompType>(id); }