Связи с сущностями соавтора

This commit is contained in:
AnnZhimol 2023-04-02 16:46:56 +04:00
parent 0b29e90218
commit 572fac5725
3 changed files with 7 additions and 2 deletions

View File

@ -19,9 +19,12 @@ namespace HotelDataBaseImplement.Models
public virtual Organiser Organiser { get; set; } public virtual Organiser Organiser { get; set; }
[ForeignKey("ConferenceId")]
public virtual List<ConferenceBooking> ConferenceBookings { get; set; }
[ForeignKey("ConferenceId")] [ForeignKey("ConferenceId")]
public virtual List<ConferenceMember> Members { get; set; } public virtual List<ConferenceMember> Members { get; set; }
private Dictionary<int, IMemberModel> _conferenceMembers = null; private Dictionary<int, IMemberModel> _conferenceMembers = null;
public Dictionary<int, IMemberModel> ConferenceMembers public Dictionary<int, IMemberModel> ConferenceMembers
{ {

View File

@ -20,6 +20,9 @@ namespace HotelDataBaseImplement.Models
public virtual Organiser Organiser { get; set; } public virtual Organiser Organiser { get; set; }
[ForeignKey("MealPlanId")]
public virtual List<Room> Rooms { get; set; }
[ForeignKey("MealPlanId")] [ForeignKey("MealPlanId")]
public virtual List<MealPlanMember> Members { get; set; } public virtual List<MealPlanMember> Members { get; set; }

View File

@ -62,6 +62,5 @@ namespace HotelDataBaseImplement.Models
MemberFIO = MemberFIO, MemberFIO = MemberFIO,
Citizenship = Citizenship Citizenship = Citizenship
}; };
} }
} }