using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HardwareShopDatabaseImplement.Models { public class PurchaseGood { [Key] [Column(Order = 1)] public int PurchaseID { get; set; } [Key] [Column(Order = 2)] public int GoodID { get; set; } [Required] public int Count { get; set; } public virtual Purchase Purchase { get; set; } = new(); public virtual Good Good { get; set; } = new(); } }