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