PIbd-23_Sergunov_M.A._GiftShop/GiftShop/GiftShopDatabaseImplement/Models/GiftComponent.cs

23 lines
523 B
C#
Raw Normal View History

2023-04-03 08:29:28 +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();
}
}