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