PIbd-23_Polevoy_S.V._Flower.../FlowerShop/FlowerShopDatabaseImplement/Models/BouquetComponent.cs

23 lines
497 B
C#
Raw Normal View History

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();
}
}