PIbd-21_BatylkinaAO_MusoevD.../Canteen/CanteenDatabaseImplement/Models/Tableware.cs

27 lines
803 B
C#
Raw Normal View History

2023-04-07 18:58:07 +04:00
using CanteenDataModels.Models;
using System;
2023-04-07 10:55:40 +04:00
using System.Collections.Generic;
2023-04-07 18:58:07 +04:00
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
2023-04-07 10:55:40 +04:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CanteenDatabaseImplement.Models
{
2023-04-07 18:58:07 +04:00
public class Tableware : ITablewareModel
2023-04-07 10:55:40 +04:00
{
2023-04-07 18:58:07 +04:00
public int Id { get; private set; }
[Required]
public int VisitorId { get; private set; }
[Required]
public int OrderId { get; private set; }
[Required]
public string TablewareName { get; private set; } = string.Empty;
[Required]
public int Count { get; private set; }
[ForeignKey("TablewareId")]
public virtual List<OrderTableware> Orders { get; set; } = new();
2023-04-07 10:55:40 +04:00
}
}