PIbd-21_Medvedkov_Coursach/ComputerShopDatabaseImplement/Models/AssemblyComponent.cs

23 lines
440 B
C#
Raw Normal View History

2024-05-01 04:42:57 +04:00
using System.ComponentModel.DataAnnotations;
namespace ComputerShopDatabaseImplement.Models
{
public class AssemblyComponent
{
public int Id { get; set; }
[Required]
public int AssemblyId { get; set; }
[Required]
public int ComponentId { get; set; }
[Required]
public int Count { get; set; }
public virtual Assembly Assembly { get; set; } = new();
public virtual Component Component { get; set; } = new();
}
}