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