Exemplo n.º 1
0
        public bool SaveSettings(EmployeeSettingsModel data)
        {
            DynamicDataStore store = DynamicDataStoreFactory.Instance.GetStore(StoreName);

            if (store == null)
            {
                store = DynamicDataStoreFactory.Instance.CreateStore(StoreName, typeof(EmployeeSettingsModel));
            }
            else
            {
                store.DeleteAll();
            }
            Identity id = store.Save(data);

            return(id.ExternalId != Guid.Empty);
        }
 public void DeleteAll()
 {
     _store.DeleteAll();
 }
Exemplo n.º 3
0
        public static void DeleteAll()
        {
            DynamicDataStore store = GetStore();

            store.DeleteAll();
        }