EF6 AutoMapper6 Parent/Child different behavior
问题 I just updated an entire WCF app from EF4 / AutoMapper 1.1 to EF6 / AutoMapper 6.0.0.2 and the behavior is not completely the same. This doesn't work for me : Entity Framework - Add Child Entity Before : child.Parent = parentObject OR parentObject.Children.Add(child) had the same result in real time (while debugging == before SaveChanges), so I decided to use child.Parent = parentObject for the readability. child.Parent = parentObject added a child in parentObject automatically. The child was