Example #1
0
 public static void SaveIngredientDO(IngredientDO row)
 {
     lock (locker) { if (row.Id == 0)
                     {
                         me.Insert(row as object);
                     }
                     else
                     {
                         me.Update(row as object);
                     } }
 }
Example #2
0
 public static void DeleteIngredientDO(IngredientDO row)
 {
     lock (locker) { me.DeleteObject <IngredientDO>(row); }
 }
Example #3
0
 private void DeleteObject <T>(IngredientDO row)
 {
     me.Delete <IngredientDO>(row.Id);
 }