diff --git a/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Manufacture.cs b/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Manufacture.cs index 82c98c6..bac69ed 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Manufacture.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Manufacture.cs @@ -44,7 +44,7 @@ namespace BlacksmithWorkshopDatabaseImplement.Models [ForeignKey("ManufactureId")] public virtual List WorkPieces { get; set; } = new(); - [ForeignKey("ProductId")] + [ForeignKey("ManufactureId")] public virtual List Orders { get; set; } = new(); public static Manufacture Create(BlacksmithWorkshopDatabase context, ManufactureBindingModel model)