34 lines
964 B
C#
34 lines
964 B
C#
using HotelContracts.ViewModels;
|
|
using HotelDataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HotelDataBaseImplement.Models
|
|
{
|
|
public class Dinner : IDinnerModel
|
|
{
|
|
public int Id { get; set; }
|
|
public int HeadwaiterId { get; set; }
|
|
|
|
[Required]
|
|
public string DinnerName { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public double DinnetPrice { get; set; }
|
|
|
|
public virtual Headwaiter Headwaiters { get; set; }
|
|
|
|
[ForeignKey("DinnerId")]
|
|
public virtual List<RoomDinner> RoomDinners { get; set; }
|
|
|
|
[ForeignKey("DinnercId")]
|
|
public virtual List<ConferenceBookingDinner> ConferenceBookingDinners { get; set; }
|
|
public DinnerViewModel? GetViewModel { get; internal set; }
|
|
}
|
|
}
|