PIbd-23-Radaev-A.V.-GiftShop/GiftShop/GiftShopDatabaseImplement/Models/GiftComponent.cs
Arkadiy Radaev 89ae0da92a res3
2024-04-07 10:15:40 +04:00

23 lines
523 B
C#

using System.ComponentModel.DataAnnotations;
namespace GiftShopDatabaseImplement.Models
{
public class GiftComponent
{
public int Id { get; set; }
[Required]
public int GiftId { get; set; }
[Required]
public int ComponentId { get; set; }
[Required]
public int Count { get; set; }
public virtual Component Component { get; set; } = new();
public virtual Gift Gift { get; set; } = new();
}
}