19 lines
492 B
C#
19 lines
492 B
C#
|
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|||
|
namespace ComputerHardwareStoreDatabaseImplement.Models
|
|||
|
{
|
|||
|
public class PurchaseBuild
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
[Required]
|
|||
|
public int PurchaseId { get; set; }
|
|||
|
[Required]
|
|||
|
public int BuildId { get; set; }
|
|||
|
[Required]
|
|||
|
public int Count { get; set; }
|
|||
|
public virtual Purchase Purchase { get; set; } = new();
|
|||
|
public virtual Build Build { get; set; } = new();
|
|||
|
}
|
|||
|
}
|