added the missing property to the product entity

This commit is contained in:
stasex 2023-10-15 16:38:20 +03:00
parent 80c9bc2b32
commit 004033f307
2 changed files with 10 additions and 4 deletions

View File

@ -16,4 +16,6 @@ public class Product : EntityBase
public double Rating { get; set; }
public string[]? ImagesUrls { get; set; }
public bool WasOpened { get; set; }
}

View File

@ -236,7 +236,8 @@ public class DbInitialaizer
"https://m.media-amazon.com/images/I/61cXu9yGldL._AC_SL1200_.jpg",
"https://m.media-amazon.com/images/I/615gxSGp42L._AC_SL1200_.jpg"
},
CreatedDateUtc = DateTime.UtcNow
CreatedDateUtc = DateTime.UtcNow,
WasOpened = false
},
new Product()
@ -252,7 +253,8 @@ public class DbInitialaizer
"https://m.media-amazon.com/images/I/51v4pgChtLL._AC_SX679_.jpg",
"https://m.media-amazon.com/images/I/61mJ0z7uYQL._AC_SX679_.jpg"
},
CreatedDateUtc = DateTime.UtcNow
CreatedDateUtc = DateTime.UtcNow,
WasOpened = false
},
new Product()
@ -268,7 +270,8 @@ public class DbInitialaizer
"https://m.media-amazon.com/images/I/71al70zP7QL._AC_SX466_.jpg",
"https://m.media-amazon.com/images/I/71+JXDDY01L._AC_SX466_.jpg"
},
CreatedDateUtc = DateTime.UtcNow
CreatedDateUtc = DateTime.UtcNow,
WasOpened = false
},
new Product()
@ -284,7 +287,8 @@ public class DbInitialaizer
"https://m.media-amazon.com/images/I/6170mJHIsYL._AC_SX466_.jpg",
"https://m.media-amazon.com/images/I/71a5As76MDL._AC_SX466_.jpg"
},
CreatedDateUtc = DateTime.UtcNow
CreatedDateUtc = DateTime.UtcNow,
WasOpened = false
}
};