PIbd-21_BatylkinaAO_MusoevD.../Canteen/CanteenDatabaseImplement/Models/OrderDish.cs
Алина Батылкина 27a19ce7f0 partially implemented storage
2023-04-07 23:35:33 +04:00

22 lines
465 B
C#

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]
public int Count { get; set; }
public virtual Order Order { get; set; } = new();
public virtual Dish Dish { get; set; } = new();
}
}