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