2023-04-06 17:00:40 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ComputerStoreDatabaseImplement.Models
|
|
|
|
|
{
|
|
|
|
|
public class RequestComponent
|
|
|
|
|
{
|
|
|
|
|
public int ID { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public int RequestID { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public int ComponentID { get; set; }
|
|
|
|
|
|
2023-05-17 18:34:28 +04:00
|
|
|
|
|
|
|
|
|
public int? PCID { get; set; }
|
2023-04-06 17:00:40 +04:00
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
|
2023-05-17 18:34:28 +04:00
|
|
|
|
public virtual PC? PC { get; set; } = new();
|
2023-04-06 17:00:40 +04:00
|
|
|
|
public virtual Component Component { get; set; } = new();
|
|
|
|
|
public virtual Request Request { get; set; } = new();
|
|
|
|
|
}
|
|
|
|
|
}
|