2023-04-02 14:51:29 +04:00
|
|
|
|
using HotelDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2023-04-02 15:27:07 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2023-04-02 14:51:29 +04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace HotelDataBaseImplement.Models
|
|
|
|
|
{
|
|
|
|
|
public class Dinner : IDinnerModel
|
|
|
|
|
{
|
2023-04-02 15:27:07 +04:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public int HeadwaiterId { get; set; }
|
2023-04-02 14:51:29 +04:00
|
|
|
|
|
2023-04-02 15:27:07 +04:00
|
|
|
|
[Required]
|
|
|
|
|
public string DinnerName { get; set; } = string.Empty;
|
2023-04-02 14:51:29 +04:00
|
|
|
|
|
2023-04-02 15:27:07 +04:00
|
|
|
|
[Required]
|
|
|
|
|
public double DinnetPrice { get; set; }
|
|
|
|
|
|
|
|
|
|
public virtual Headwaiter Headwaiter { get; set; }
|
|
|
|
|
|
|
|
|
|
[ForeignKey("DinnerId")]
|
|
|
|
|
public virtual List<RoomHeadwaiter> RoomHeadwaiters { get; set; }
|
|
|
|
|
|
|
|
|
|
[ForeignKey("DinnercId")]
|
|
|
|
|
public virtual List<ConferenceBookingHeadwaiter> ConferenceBookingHeadwaites { get; set; }
|
2023-04-02 14:51:29 +04:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|