Исправление Dinner. Добавление и заполнение RoomDinner и ConferenceBookingDinner в DataBaseImplement.
This commit is contained in:
parent
c10db2e633
commit
257e7b3b4d
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
@ -20,13 +20,13 @@ namespace HotelDataBaseImplement.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public double DinnetPrice { get; set; }
|
public double DinnetPrice { get; set; }
|
||||||
|
|
||||||
public virtual Headwaiter Headwaiter { get; set; }
|
public virtual Headwaiter Headwaiters { get; set; }
|
||||||
|
|
||||||
[ForeignKey("DinnerId")]
|
[ForeignKey("DinnerId")]
|
||||||
public virtual List<RoomHeadwaiter> RoomHeadwaiters { get; set; }
|
public virtual List<RoomDinner> RoomDinners { get; set; }
|
||||||
|
|
||||||
[ForeignKey("DinnercId")]
|
[ForeignKey("DinnercId")]
|
||||||
public virtual List<ConferenceBookingHeadwaiter> ConferenceBookingHeadwaites { get; set; }
|
public virtual List<ConferenceBookingDinner> ConferenceBookingDinners { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
21
Hotel/HotelDataBaseImplement/Models/RoomDinner.cs
Normal file
21
Hotel/HotelDataBaseImplement/Models/RoomDinner.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user