PIbd21_Makarov_DV_FlowerShop/FlowerShop/FlowerShopDatabaseImplement/Models/FlowerComponent.cs

19 lines
489 B
C#
Raw Normal View History

2024-03-09 17:32:17 +04:00
using System.ComponentModel.DataAnnotations;
namespace FlowerShopDatabaseImplement.Models
{
public class FlowerComponent
{
public int Id { get; set; }
[Required]
public int FlowerId { get; set; }
[Required]
public int ComponentId { get; set; }
[Required]
public int Count { get; set; }
public virtual Component Component { get; set; } = new();
public virtual Flower Flower { get; set; } = new();
}
}