Example #1
0
 public void Savetongs_entity(tongs_entity Data)
 {
     using (var dbContext = new ToolManageDbContext())
     {
         if (Data.ID > 0)
         {
             dbContext.Update <tongs_entity>(Data);
         }
         else
         {
             dbContext.Insert <tongs_entity>(Data);
         }
     }
 }
Example #2
0
 public void SaveRepairTable(RepairTable Data)
 {
     using (var dbContext = new ToolManageDbContext())
     {
         if (Data.ID > 0)
         {
             dbContext.Update <RepairTable>(Data);
         }
         else
         {
             dbContext.Insert <RepairTable>(Data);
         }
     }
 }