示例#1
0
 // ----------------------------------------------------------------------------------------
 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);
 }
示例#2
0
 // ----------------------------------------------------------------------------------------
 public static void DeleteCompType(int id)
 {
     PetaPoco.Database db = new PetaPoco.Database("ElecLibConnString");
     db.Delete<CompType>(id);
 }