Esempio n. 1
0
 /// <summary>
 /// Adds Postgres 10.0 support
 /// </summary>
 /// <param name="builder">The builder to add the Postgres-specific services to</param>
 /// <returns>The migration runner builder</returns>
 public static IMigrationRunnerBuilder AddPostgres10_0(this IMigrationRunnerBuilder builder)
 {
     builder.Services
     .AddScoped <Postgres10_0Processor>()
     .AddScoped <IMigrationProcessor>(sp => sp.GetRequiredService <Postgres10_0Processor>())
     .AddScoped <Postgres10_0Generator>()
     .AddScoped <IMigrationGenerator>(sp => sp.GetRequiredService <Postgres10_0Generator>());
     return(builder.AddCommonPostgresServices());
 }