PIbd21_Makarov_DV_FlowerShop/FlowerShop/FlowerShopDatabaseImplement/Models/ShopFlower.cs
2024-04-25 20:09:08 +04:00

18 lines
468 B
C#

using System.ComponentModel.DataAnnotations;
namespace FlowerShopDatabaseImplement.Models
{
public class ShopFlower
{
public int Id { get; set; }
[Required]
public int ShopId { get; set; }
[Required]
public int FlowerId { get; set; }
[Required]
public int Count { get; set; }
public virtual Flower Flower { get; set; } = new();
public virtual Shop Shop { get; set; } = new();
}
}