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