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