Skip to content

Commit

Permalink
till video 208 half work of 209 is remained (Errored code due to work…
Browse files Browse the repository at this point in the history
… remained\)
  • Loading branch information
Dhyan committed Sep 1, 2023
1 parent bb61f27 commit b01d1a3
Show file tree
Hide file tree
Showing 43 changed files with 1,443 additions and 211 deletions.
19 changes: 7 additions & 12 deletions Bulky.DataAccess/Data/ApplicationDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : ba
public DbSet<ShoppingCart> shoppingCarts { get; set; }
public DbSet<OrderHeader> orderHeaders { get; set; }
public DbSet<OrderDetail> orderDetails { get; set; }
public DbSet<ProductImage> productImages { get; set; }

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
Expand Down Expand Up @@ -76,8 +77,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
Price = 90,
Price50 = 85,
Price100 = 80,
CategoryId = 1,
ImageURL = ""
CategoryId = 1
},
new Product
{
Expand All @@ -90,8 +90,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
Price = 30,
Price50 = 25,
Price100 = 20,
CategoryId = 1,
ImageURL = ""
CategoryId = 1
},
new Product
{
Expand All @@ -104,8 +103,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
Price = 50,
Price50 = 40,
Price100 = 35,
CategoryId = 1,
ImageURL = ""
CategoryId = 1
},
new Product
{
Expand All @@ -118,8 +116,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
Price = 65,
Price50 = 60,
Price100 = 55,
CategoryId = 2,
ImageURL = ""
CategoryId = 2
},
new Product
{
Expand All @@ -132,8 +129,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
Price = 27,
Price50 = 25,
Price100 = 20,
CategoryId = 2,
ImageURL = ""
CategoryId = 2
},
new Product
{
Expand All @@ -146,8 +142,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
Price = 23,
Price50 = 22,
Price100 = 20,
CategoryId = 3,
ImageURL = ""
CategoryId = 3
}
);
}
Expand Down
Loading

0 comments on commit b01d1a3

Please sign in to comment.