PIbd-21_Musoev_D.T._FlowerShop/FlowerShop/FlowerShopDatabaseImplement/Models/BouquetComponent.cs
2023-04-14 02:36:37 +04:00

23 lines
497 B
C#

using System.ComponentModel.DataAnnotations;
namespace FlowerShopDatabaseImplement.Models
{
public class BouquetComponent
{
public int Id { get; set; }
[Required]
public int BouquetId { get; set; }
[Required]
public int ComponentId { get; set; }
[Required]
public int Count { get; set; }
public virtual Component Component { get; set; } = new();
public virtual Bouquet Bouquet { get; set; } = new();
}
}