Ejemplo n.º 1
0
 public static IConfigurationBuilder AddDbToolsExampleConfiguration(this IConfigurationBuilder configurationBuilder,
                                                                    SupportedDatabaseTypes databaseType)
 {
     return(configurationBuilder
            .AddJsonFile(BaseConfig.ConfigFilename(databaseType))
            .AddJsonFileIfTrue(BaseConfig.ConfigDockerFilename(databaseType), () => BaseConfig.InContainer)
            .AddInMemoryIfTrue(BaseConfig.ExternalServiceHostConfiguration, () => BaseConfig.UseExternalServiceHost));
 }