public static void SaveEntryDO(EntryDO row) { lock (locker) { if (row.Id == 0) { me.Insert(row as object); } else { me.Update(row as object); } } }
public static void DeleteEntryDO(EntryDO row) { lock (locker) { me.DeleteObject <EntryDO>(row); } }
private void DeleteObject <T>(EntryDO row) { me.Delete <EntryDO>(row.Id); }