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