context to catalogContext (#493)

This commit is contained in:
Shady Nagy
2021-02-13 17:51:03 +02:00
committed by GitHub
parent ba9aea29bd
commit 7a7625662e

View File

@@ -16,7 +16,7 @@ namespace Microsoft.eShopWeb.Infrastructure.Data
try
{
// TODO: Only run this if using a real database
// context.Database.Migrate();
// catalogContext.Database.Migrate();
if (!await catalogContext.CatalogBrands.AnyAsync())
{
await catalogContext.CatalogBrands.AddRangeAsync(