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