Beispiel #1
0
        private static List <ModuleSettings> GeSettingValuesList()
        {
            var settings = SQLDataAccess.ExecuteReadList("Select * From [Settings].[ModuleSettings]", CommandType.Text,
                                                         reader => new ModuleSettings()
            {
                Name       = SQLDataHelper.GetString(reader, "Name"),
                Value      = SQLDataHelper.GetObject(reader, "Value"),
                ModuleName = SQLDataHelper.GetString(reader, "ModuleName"),
            });

            if (settings != null)
            {
                CacheManager.Insert(CacheNames.GetModuleSettingsCacheObjectName(), settings);
            }
            return(settings);
        }