コード例 #1
0
        private static void AddConfiguration(WebHostBuilderContext context,
                                             IConfigurationBuilder builder)
        {
            var configuration    = builder.Build();
            var connectionString = configuration.GetConnectionString("Database");

            builder.AddDemoDbProvider(options => options.UseSqlServer(connectionString));
        }