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