diff --git a/AutomobilePlant/AutomobilePlantDatabaseImplement/Implements/CarStorage.cs b/AutomobilePlant/AutomobilePlantDatabaseImplement/Implements/CarStorage.cs index 5a6e21a..e687073 100644 --- a/AutomobilePlant/AutomobilePlantDatabaseImplement/Implements/CarStorage.cs +++ b/AutomobilePlant/AutomobilePlantDatabaseImplement/Implements/CarStorage.cs @@ -10,6 +10,7 @@ using System.Reflection.Metadata; using System.Text; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; +using System.Xml.Linq; namespace AutomobilePlantDatabaseImplement.Implements { @@ -100,6 +101,7 @@ namespace AutomobilePlantDatabaseImplement.Implements } car.Update(model); + car.UpdateComponents(context, model); context.SaveChanges(); context.Database.CommitTransaction();