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