public BambooMigrationsDbContext CreateDbContext(string[] args)
        {
            BambooEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

#if HAS_DB_POSTGRESQL
            var builder = new DbContextOptionsBuilder <BambooMigrationsDbContext>()
                          .UseNpgsql(configuration.GetConnectionString("Default"), o => o.UseNetTopologySuite())
                          //.ReplaceService<IMigrationsSqlGenerator, MyPostgresMigrationsSqlGenerator>()
            ;
#else
            var builder = new DbContextOptionsBuilder <BambooMigrationsDbContext>()
                          .UseSqlServer(configuration.GetConnectionString("Default"));
#endif
            return(new BambooMigrationsDbContext(builder.Options));
        }
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     BambooEfCoreEntityExtensionMappings.Configure();
 }