Coursework_ComputerStore_Li.../ComputerStoreDatabaseImplement/Models/ConsignmentComponent.cs

33 lines
759 B
C#

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 ConsignmentComponent
{
public int ID { get; set; }
[Required]
public int ConsignmentID { get; set; }
[Required]
public int ComponentID { get; set; }
[Required]
public int ProductID { get; set; }
[Required]
public int Count { get; set; }
public virtual Product Product { get; set; } = new();
public virtual Component Component { get; set; } = new();
public virtual Consignment Consignment { get; set; } = new();
}
}