public void Update(Monkey monkey) { DBRecord record; records.TryGetValue(monkey.Name, out record); record.Update(monkey.ToDictionary()); store.SyncAsync(null); }
public async Task SaveTodoItemAsync(TodoItem t) { DBError error; var table = store.GetTable(tableName); var r = table.GetRecord(t.ID, out error); if (r == null) { table.Insert(t.ToDictionary()); } else { r.Update(t); } await store.SyncAsync(); }
public void Update(Task t) { DBError error; var table = store.GetTable(tableName); var r = table.GetRecord(t.id, out error); if (r == null) { table.Insert(t.ToDictionary()); } else { r.Update(t); } store.SyncAsync(null); }
public void Update() { _generalStore.SyncAsync(); }