private void AddCatalogItemsStock(EntityModel context) { var preconfiguredStock = PreconfiguredData.GetPreconfiguredCatalogItemsStock(); foreach (var s in preconfiguredStock) { context.CatalogItemsStocks.Add(s); } context.SaveChanges(); }
private void AddCatalogItems(EntityModel context) { var preconfiguredItems = PreconfiguredData.GetPreconfiguredCatalogItems(); foreach (var item in preconfiguredItems) { context.CatalogItems.Add(item); } context.SaveChanges(); }
private void AddCatalogBrands(EntityModel context) { var preconfiguredBrands = PreconfiguredData.GetPreconfiguredCatalogBrands(); foreach (var brand in preconfiguredBrands) { context.CatalogBrands.Add(brand); } context.SaveChanges(); }
private void AddDiscountItems(EntityModel context) { var preconfiguredDiscounts = PreconfiguredData.GetPreconfiguredDiscountItems(); foreach (var discount in preconfiguredDiscounts) { context.DiscountItems.Add(discount); } context.SaveChanges(); }
private void AddCatalogTypes(EntityModel context) { var preconfiguredTypes = PreconfiguredData.GetPreconfiguredCatalogTypes(); foreach (var type in preconfiguredTypes) { context.CatalogTypes.Add(type); } context.SaveChanges(); }