Beispiel #1
0
 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;
 }
Beispiel #4
0
 public BbsBuyersController(ecomContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public BbsBrandsController(ecomContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public BbsEmployeesController(ecomContext context)
 {
     _context = context;
 }
 public BbsAddrsController(ecomContext context)
 {
     _context = context;
 }
 public BbsProductsController(ecomContext context)
 {
     _context = context;
 }