23 lines
523 B
C#
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();
|
|||
|
}
|
|||
|
}
|