ComputerHardwareStore_YouAr.../ComputerHardwareStore/ComputerHardwareStoreDatabaseImplement/Models/PurchaseBuild.cs

19 lines
492 B
C#
Raw Normal View History

2024-04-30 19:12:40 +04:00

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