Заполнение Dinner в DataBaseImplement
This commit is contained in:
parent
f1eebab894
commit
c10db2e633
@ -1,6 +1,8 @@
|
||||
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;
|
||||
@ -9,12 +11,22 @@ namespace HotelDataBaseImplement.Models
|
||||
{
|
||||
public class Dinner : IDinnerModel
|
||||
{
|
||||
public string DinnerName => throw new NotImplementedException();
|
||||
public int Id { get; set; }
|
||||
public int HeadwaiterId { get; set; }
|
||||
|
||||
public double DinnetPrice => throw new NotImplementedException();
|
||||
[Required]
|
||||
public string DinnerName { get; set; } = string.Empty;
|
||||
|
||||
public int HeadwaiterId => throw new NotImplementedException();
|
||||
[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; }
|
||||
|
||||
public int Id => throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user