Entity Framework Pitfalls: Attaching New Entities With Existing Related Ones

added by Ricardo Peres
2/8/2016 3:54:02 PM

163 Views

One of the patterns in EF 6.x for attaching new entities to a context is to simply change it's state to Added: Entity Framework 6.x will traverse the entity graph of all the related entities and set all their states to Added too. This might be a problem.


0 comments