DB + model product fixes.

This commit is contained in:
Yuee Shiness 2023-05-19 19:23:27 +04:00
parent 2ebbe9789f
commit 5bfcab5958

View File

@ -45,7 +45,7 @@ namespace ComputerStoreDatabaseImplement.Models
public virtual List<ProductComponent> Components { get; set; } = new();
[ForeignKey("ProductID")]
public virtual List<Consignment> Consignments { get; set; } = new();
public virtual List<ConsignmentProduct> Consignments { get; set; } = new();
public virtual Employee Employee { get; set; }
public static Product Create(ComputerStoreDatabase context, ProductBindingModel model)