diff --git a/Hotel/HotelDataBaseImplement/Models/ConferenceBookingDinner.cs b/Hotel/HotelDataBaseImplement/Models/ConferenceBookingDinner.cs new file mode 100644 index 0000000..fe57745 --- /dev/null +++ b/Hotel/HotelDataBaseImplement/Models/ConferenceBookingDinner.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HotelDataBaseImplement.Models +{ + public class ConferenceBookingDinner + { + public int Id { get; set; } + public int ConferenceBookingId { get; set; } + public int DinnerId { get; set; } + + [Required] + public int Count { get; set; } + public virtual ConferenceBooking ConferenceBookings { get; set; } + public virtual Dinner Dinners { get; set; } + } +} diff --git a/Hotel/HotelDataBaseImplement/Models/Dinner.cs b/Hotel/HotelDataBaseImplement/Models/Dinner.cs index feb3413..0a701e4 100644 --- a/Hotel/HotelDataBaseImplement/Models/Dinner.cs +++ b/Hotel/HotelDataBaseImplement/Models/Dinner.cs @@ -20,13 +20,13 @@ namespace HotelDataBaseImplement.Models [Required] public double DinnetPrice { get; set; } - public virtual Headwaiter Headwaiter { get; set; } + public virtual Headwaiter Headwaiters { get; set; } [ForeignKey("DinnerId")] - public virtual List RoomHeadwaiters { get; set; } + public virtual List RoomDinners { get; set; } [ForeignKey("DinnercId")] - public virtual List ConferenceBookingHeadwaites { get; set; } + public virtual List ConferenceBookingDinners { get; set; } } } diff --git a/Hotel/HotelDataBaseImplement/Models/RoomDinner.cs b/Hotel/HotelDataBaseImplement/Models/RoomDinner.cs new file mode 100644 index 0000000..95e71b8 --- /dev/null +++ b/Hotel/HotelDataBaseImplement/Models/RoomDinner.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HotelDataBaseImplement.Models +{ + public class RoomDinner + { + public int Id { get; set; } + public int RoomId { get; set; } + public int DinnerId { get; set; } + + [Required] + public int Count { get; set; } + public virtual Room Rooms { get; set; } + public virtual Dinner Dinners { get; set; } + } +}