Exemple #1
0
        public override void Load()
        {
            var builder = new EFConfigurationOptionsBuilder();

            OptionsAction(builder);
            using (var ctx = new ConfigurationDbContext(builder))
            {
                ctx.Database.EnsureCreated();
                Data = ctx.Configurations.ToDictionary(t => t.Key, t => t.Value);
            }
        }
 public ConfigurationDbContext(EFConfigurationOptionsBuilder options) : base(options.DbContextOptions.Options)
 {
     Builder = options;
 }