Browse Source

context to catalogContext (#493)

main
Shady Nagy 5 years ago
committed by GitHub
parent
commit
7a7625662e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Infrastructure/Data/CatalogContextSeed.cs

2
src/Infrastructure/Data/CatalogContextSeed.cs

@ -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(

Loading…
Cancel
Save