Skip to content

Commit b01d1a3

Browse files
author
Dhyan
committed
till video 208 half work of 209 is remained (Errored code due to work remained\)
1 parent bb61f27 commit b01d1a3

File tree

43 files changed

+1443
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1443
-211
lines changed

Bulky.DataAccess/Data/ApplicationDbContext.cs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : ba
2020
public DbSet<ShoppingCart> shoppingCarts { get; set; }
2121
public DbSet<OrderHeader> orderHeaders { get; set; }
2222
public DbSet<OrderDetail> orderDetails { get; set; }
23+
public DbSet<ProductImage> productImages { get; set; }
2324

2425
protected override void OnModelCreating(ModelBuilder modelBuilder)
2526
{
@@ -76,8 +77,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
7677
Price = 90,
7778
Price50 = 85,
7879
Price100 = 80,
79-
CategoryId = 1,
80-
ImageURL = ""
80+
CategoryId = 1
8181
},
8282
new Product
8383
{
@@ -90,8 +90,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
9090
Price = 30,
9191
Price50 = 25,
9292
Price100 = 20,
93-
CategoryId = 1,
94-
ImageURL = ""
93+
CategoryId = 1
9594
},
9695
new Product
9796
{
@@ -104,8 +103,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
104103
Price = 50,
105104
Price50 = 40,
106105
Price100 = 35,
107-
CategoryId = 1,
108-
ImageURL = ""
106+
CategoryId = 1
109107
},
110108
new Product
111109
{
@@ -118,8 +116,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
118116
Price = 65,
119117
Price50 = 60,
120118
Price100 = 55,
121-
CategoryId = 2,
122-
ImageURL = ""
119+
CategoryId = 2
123120
},
124121
new Product
125122
{
@@ -132,8 +129,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
132129
Price = 27,
133130
Price50 = 25,
134131
Price100 = 20,
135-
CategoryId = 2,
136-
ImageURL = ""
132+
CategoryId = 2
137133
},
138134
new Product
139135
{
@@ -146,8 +142,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
146142
Price = 23,
147143
Price50 = 22,
148144
Price100 = 20,
149-
CategoryId = 3,
150-
ImageURL = ""
145+
CategoryId = 3
151146
}
152147
);
153148
}

0 commit comments

Comments
 (0)