Ejemplo n.º 1
0
 private async Task SeedData(TechAndToolsDbContext context)
 {
     context.AddRange(this.GetProductsData());
     context.AddRange(this.GetArticlesData());
     context.AddRange(this.GetImagesData());
     await context.SaveChangesAsync();
 }
 private async Task SeedData(TechAndToolsDbContext context)
 {
     context.AddRange(this.GetProductsData());
     context.Users.Add(this.GetTestUser());
     context.FavoriteProducts.AddRange(this.GetFavoriteProductsData());
     await context.SaveChangesAsync();
 }
 private async Task SeedData(TechAndToolsDbContext context)
 {
     context.AddRange(GetBrandsData());
     await context.SaveChangesAsync();
 }
Ejemplo n.º 4
0
 private async Task SeedData(TechAndToolsDbContext context)
 {
     context.AddRange(GetCategoriesData());
     context.AddRange(GetMainCategoriesData());
     await context.SaveChangesAsync();
 }