예제 #1
0
        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());
        }
예제 #2
0
        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());
        }