Impliment ProductImages
This commit is contained in:
@@ -25,7 +25,7 @@ namespace MistoxWebsite.Server.Entities {
|
||||
public string Name { get; set; } = "";
|
||||
public string Description { get; set; } = "";
|
||||
public int CurShowingIMG = 0;
|
||||
public FormFile[] Images { get; set; } = [];
|
||||
public ProductImage[] Images { get; set; } = [];
|
||||
public int Cost { get; set; }
|
||||
public string URL { get; set; } = "";
|
||||
}
|
||||
@@ -33,7 +33,7 @@ namespace MistoxWebsite.Server.Entities {
|
||||
public class ProductImage {
|
||||
public int ImageID { get; set; } // PK
|
||||
public int ProductID { get; set; }
|
||||
public byte[] Image { get; set; } = [];
|
||||
public FormFile? Image { get; set; } = null;
|
||||
}
|
||||
|
||||
public class Cart {
|
||||
|
||||
Reference in New Issue
Block a user