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