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