2023-03-09 04:09:42 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace PizzeriaDatabaseImplement.Models
|
|
|
|
|
{
|
|
|
|
|
public class PizzaComponent
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Required]
|
2023-03-27 01:22:49 +04:00
|
|
|
|
public int PizzaId { get; set; }
|
2023-03-09 04:09:42 +04:00
|
|
|
|
[Required]
|
|
|
|
|
public int ComponentId { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
public virtual Component Component { get; set; } = new();
|
2023-03-27 01:22:49 +04:00
|
|
|
|
public virtual Pizza Pizza { get; set; } = new();
|
2023-03-09 04:09:42 +04:00
|
|
|
|
}
|
|
|
|
|
}
|