Insert new record in pivot table with many to many relationship using Entity Framework Core
问题 I am building an application using ASP.NET Core MVC. I am trying to insert a new record with a many-to-many relationship. I have 3 tables Repairs , Parts and RepairParts . How can I insert the RepairId and PartId into the RepairParts table? Does EF Core provide something for this? I searched the documentation but it doesn't mention anything about how to do this. Does Entity Framework do this automatically? (insert to the pivot table) Or do I need to do it manually? An example would help.