public async Task SeedAsync(ecomContext context) { if (!context.BbsBuyer.Any()) { context.BbsBuyer.AddRange(GetPreconfiguredBbsBuyers()); await context.SaveChangesAsync(); } if (!context.BbsBrand.Any()) { context.BbsBrand.AddRange(GetPreconfiguredBbsBrands()); await context.SaveChangesAsync(); } }
public BbsProvincesController(ecomContext context) { _context = context; }
public BbsTownsController(ecomContext context) { _context = context; }
public BbsBuyersController(ecomContext context) { _context = context; }
public BbsBrandsController(ecomContext context) { _context = context; }
public BbsEmployeesController(ecomContext context) { _context = context; }
public BbsAddrsController(ecomContext context) { _context = context; }
public BbsProductsController(ecomContext context) { _context = context; }