public PoetryMigrationsDbContext CreateDbContext(string[] args) { PoetryEfCoreEntityExtensionMappings.Configure(); var configuration = BuildConfiguration(); var builder = new DbContextOptionsBuilder <PoetryMigrationsDbContext>() .UseNpgsql(configuration.GetConnectionString("Default")); return(new PoetryMigrationsDbContext(builder.Options)); }
public override void PreConfigureServices(ServiceConfigurationContext context) { PoetryEfCoreEntityExtensionMappings.Configure(); }