context to catalogContext (#493)
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Microsoft.eShopWeb.Infrastructure.Data
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// TODO: Only run this if using a real database
|
// TODO: Only run this if using a real database
|
||||||
// context.Database.Migrate();
|
// catalogContext.Database.Migrate();
|
||||||
if (!await catalogContext.CatalogBrands.AnyAsync())
|
if (!await catalogContext.CatalogBrands.AnyAsync())
|
||||||
{
|
{
|
||||||
await catalogContext.CatalogBrands.AddRangeAsync(
|
await catalogContext.CatalogBrands.AddRangeAsync(
|
||||||
|
|||||||
Reference in New Issue
Block a user