From 945ed4d733425b87ccc1fe4452c879d4a0f87b7e Mon Sep 17 00:00:00 2001 From: PIbd-21_Spasskyi_Artem Date: Wed, 14 Jun 2023 23:58:53 +0400 Subject: [PATCH] Lab6_Main_Fix --- CarpentryWorkshopDatabaseImplement/Models/Order.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CarpentryWorkshopDatabaseImplement/Models/Order.cs b/CarpentryWorkshopDatabaseImplement/Models/Order.cs index e77c312..a8ff58f 100644 --- a/CarpentryWorkshopDatabaseImplement/Models/Order.cs +++ b/CarpentryWorkshopDatabaseImplement/Models/Order.cs @@ -12,11 +12,11 @@ namespace CarpentryWorkshopDatabaseImplement.Models public class Order : IOrderModel { public int Id { get; private set; } - + [ForeignKey("WoodId")] public int WoodId { get; private set; } - + [ForeignKey("ImplementerId")] public int? ImplementerId { get; private set; } - + [ForeignKey("ClientId")] [Required] public int ClientId { get; set; }