public void DeleteDataset(AbstractDataset dataset) { if (dataset == null) { Log.Warn("[PersonController.DeleteDataset] try to delete empty dataset"); return; } StoreProvider.DeleteEntry(dataset.GetType().Name, dataset.ToDictionary()); }
public void SaveDataset(AbstractDataset dataset) { if (dataset == null) { Log.Warn("[PersonController.SavePerson] try to save empty dataset"); return; } // TODO: set Id as Primary-Field // actual the first property is primary if Store does not exist StoreProvider.UpdateStore(dataset.GetType().Name, dataset.ToDictionary()); }