我正在尝试更新子集合(MVC3和Entity Framework4),但无法获得任何更新以进行持久化。 public ActionResult Edit(Subject EditedSubject, IEnumerable<SubjectTagPin> SubjectTagPins) try XDataModelContainer model = new XDataModelContainer();
我能在EntityFrameworkCore中做到这一点吗? modelBuilder.Entity() .HasMany(r => r.TaggedCustomers)
.WithMany() // No navigation property here 参考:unidirectional many-to-many relationship with Code First Entity Framework