PIbd-22_Tsukanova_I.V._IceC.../IceCreamShop/IceCreamShopDatabaseImplement/Models/ShopIcecream.cs
2023-04-09 19:24:19 +04:00

19 lines
479 B
C#

using System.ComponentModel.DataAnnotations;
namespace IceCreamShopDatabaseImplement.Models
{
public class ShopIcecream
{
public int Id { get; set; }
[Required]
public int IceCreamId { get; set; }
[Required]
public int ShopId { get; set; }
[Required]
public int Count { get; set; }
public virtual Shop Shop { get; set; } = new();
public virtual IceCream IceCream { get; set; } = new();
}
}