コード例 #1
0
ファイル: CompSubTypeRepo.cs プロジェクト: rledyard/ElecLib
 // ----------------------------------------------------------------------------------------
 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
ファイル: CompTypeRepo.cs プロジェクト: rledyard/ElecLib
 // ----------------------------------------------------------------------------------------
 public static void DeleteCompType(int id)
 {
     PetaPoco.Database db = new PetaPoco.Database("ElecLibConnString");
     db.Delete<CompType>(id);
 }