ComputerHardwareStore_YouAr.../ComputerHardwareStore/ComputerHardwareStoreDatabaseImplement/Models/PurchaseBuild.cs
2024-05-01 12:36:17 +04:00

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();
}
}