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

22 lines
471 B
C#
Raw Normal View History

2023-04-07 23:35:33 +04:00
using System.ComponentModel.DataAnnotations;
namespace CanteenDatabaseImplement.Models
{
public class OrderDish
{
public int Id { get; set; }
[Required]
public int OrderId { get; set; }
[Required]
public int DishId { get; set; }
[Required]
2023-04-09 00:34:25 +04:00
public int CountDishes { get; set; }
2023-04-07 23:35:33 +04:00
public virtual Order Order { get; set; } = new();
public virtual Dish Dish { get; set; } = new();
}
}