Пример #1
0
        public override void Load()
        {
            var builder = new ConfigurationBuilder();

            builder.AddJsonFile("appsettings.json");
            var config     = builder.Build();
            var conn       = new SqlConnectionDeveloperDb(config);
            var repository = new ConfigurationRepository(conn);
            var data       = repository.GetBegoniaConfigurations();
            var prefix     = "BegoniaConfig";

            foreach (var item in data)
            {
                base.Data.Add($"{prefix}{item.key}", item.value);
            }
        }