PIbd-22_Katysheva_N.E._Pizz.../Pizzeria/PizzeriaDatabaseImplement/Models/ProductComponent.cs

24 lines
603 B
C#
Raw Normal View History

2024-03-27 00:02:36 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PizzeriaDatabaseImplement.Models
{
public class ProductComponent
{
public int Id { get; set; }
[Required]
public int ProductId { get; set; }
[Required]
public int ComponentId { get; set; }
[Required]
public int Count { get; set; }
public virtual Component Component { get; set; } = new();
public virtual Pizza Pizza { get; set; } = new();
}
}