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