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