PIbd-23-Radaev-A.V.-GiftShop/GiftShop/GiftShopDatabaseImplement/Models/GiftComponent.cs

23 lines
523 B
C#
Raw Normal View History

2024-04-07 10:15:40 +04:00
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();
}
}