Ejemplo n.º 1
0
        private static DbConfig GetDbConfig(string dbName)
        {
            if (dbConfigs == null)
            {
                dbConfigs = ConfigurationManager.AppSettingOfList <DbConfig>("DbConfig");
            }

            return(dbName == null ? dbConfigs[0] : dbConfigs.FirstOrDefault(x => x.DbName.Equals(dbName)));
        }