Exemplo n.º 1
0
        public virtual PersistentDictionary <string, StoreSetting> LoadDictionaryForStore()
        {
            PersistentCollection <StoreSetting>         settingCollection = StoreSettingDataSource.LoadForStore();
            PersistentDictionary <string, StoreSetting> settingDictionary = new PersistentDictionary <string, StoreSetting>();

            foreach (StoreSetting setting in settingCollection)
            {
                settingDictionary.Add(setting.FieldName, setting);
            }
            return(settingDictionary);
        }
Exemplo n.º 2
0
 public static StoreSetting Load(Int32 storeSettingId)
 {
     return(StoreSettingDataSource.Load(storeSettingId, true));
 }