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