From 572fac57255567a7eadc6ce3c1ef3a3192c83061 Mon Sep 17 00:00:00 2001 From: AnnZhimol Date: Sun, 2 Apr 2023 16:46:56 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B2=D1=8F=D0=B7=D0=B8=20=D1=81=20?= =?UTF-8?q?=D1=81=D1=83=D1=89=D0=BD=D0=BE=D1=81=D1=82=D1=8F=D0=BC=D0=B8=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hotel/HotelDataBaseImplement/Models/Conference.cs | 5 ++++- Hotel/HotelDataBaseImplement/Models/MealPlan.cs | 3 +++ Hotel/HotelDataBaseImplement/Models/Member.cs | 1 - 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Hotel/HotelDataBaseImplement/Models/Conference.cs b/Hotel/HotelDataBaseImplement/Models/Conference.cs index 371c717..00cf441 100644 --- a/Hotel/HotelDataBaseImplement/Models/Conference.cs +++ b/Hotel/HotelDataBaseImplement/Models/Conference.cs @@ -19,9 +19,12 @@ namespace HotelDataBaseImplement.Models public virtual Organiser Organiser { get; set; } + [ForeignKey("ConferenceId")] + public virtual List ConferenceBookings { get; set; } + [ForeignKey("ConferenceId")] public virtual List Members { get; set; } - + private Dictionary _conferenceMembers = null; public Dictionary ConferenceMembers { diff --git a/Hotel/HotelDataBaseImplement/Models/MealPlan.cs b/Hotel/HotelDataBaseImplement/Models/MealPlan.cs index 693ec00..7785f4d 100644 --- a/Hotel/HotelDataBaseImplement/Models/MealPlan.cs +++ b/Hotel/HotelDataBaseImplement/Models/MealPlan.cs @@ -20,6 +20,9 @@ namespace HotelDataBaseImplement.Models public virtual Organiser Organiser { get; set; } + [ForeignKey("MealPlanId")] + public virtual List Rooms { get; set; } + [ForeignKey("MealPlanId")] public virtual List Members { get; set; } diff --git a/Hotel/HotelDataBaseImplement/Models/Member.cs b/Hotel/HotelDataBaseImplement/Models/Member.cs index 5d8c292..04d97d1 100644 --- a/Hotel/HotelDataBaseImplement/Models/Member.cs +++ b/Hotel/HotelDataBaseImplement/Models/Member.cs @@ -62,6 +62,5 @@ namespace HotelDataBaseImplement.Models MemberFIO = MemberFIO, Citizenship = Citizenship }; - } }