PIbd-21_Musoev_D.T._FlowerShop/FlowerShop/FlowerShopDatabaseImplement/Models/BouquetComponent.cs

23 lines
497 B
C#
Raw Normal View History

2023-04-14 02:36:37 +04:00
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();
}
}