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 }; - } }