From 5bfcab5958406623eb1205d4adeb5e329cc9cdfb Mon Sep 17 00:00:00 2001 From: Yuee Shiness Date: Fri, 19 May 2023 19:23:27 +0400 Subject: [PATCH] DB + model product fixes. --- ComputerStoreDatabaseImplement/Models/Product.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ComputerStoreDatabaseImplement/Models/Product.cs b/ComputerStoreDatabaseImplement/Models/Product.cs index 9369614..ef96852 100644 --- a/ComputerStoreDatabaseImplement/Models/Product.cs +++ b/ComputerStoreDatabaseImplement/Models/Product.cs @@ -45,8 +45,8 @@ namespace ComputerStoreDatabaseImplement.Models public virtual List Components { get; set; } = new(); [ForeignKey("ProductID")] - public virtual List Consignments { get; set; } = new(); - + public virtual List Consignments { get; set; } = new(); + public virtual Employee Employee { get; set; } public static Product Create(ComputerStoreDatabase context, ProductBindingModel model) {