From f632ebd23e4d2f54e0df67ab2ed3f157a2112dbe Mon Sep 17 00:00:00 2001 From: VictoriaPresnyakova Date: Sun, 30 Apr 2023 19:37:01 +0400 Subject: [PATCH] client edited: added list of msgs --- JewelryStoreDatabaseImplement/Models/Client.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/JewelryStoreDatabaseImplement/Models/Client.cs b/JewelryStoreDatabaseImplement/Models/Client.cs index dc30528..b3248da 100644 --- a/JewelryStoreDatabaseImplement/Models/Client.cs +++ b/JewelryStoreDatabaseImplement/Models/Client.cs @@ -23,7 +23,10 @@ namespace JewelryStoreDatabaseImplement.Models [ForeignKey("ClientId")] public virtual List Orders { get; set; } = new(); - public static Client? Create(ClientBindingModel model) + + [ForeignKey("ClientId")] + public virtual List Messages { get; set; } = new(); + public static Client? Create(ClientBindingModel model) { if (model == null) {