You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attach method needs to ensure that object graph is populated prior to attaching, otherwise it will assume it is already done and then attempt to attach which will generate errors with identity inserts, foreign keys and such. Something along the lines of Find(key) needs to be used first.
The text was updated successfully, but these errors were encountered:
This works if you are using an active object graph but fails when detaching. In order to fix this, we need to implement the concept of key assignment which will not be going into the 1.0.0 release. Moving to 1.5 milestone for review there.
We probably need to evaluate implementing our own change tracking abstractions for these types of repositories. This may fall into the Distributed architecture milestone enhancements along with what we're doing for eventing entities with this work. Keeping in backlog for now.
Attach method needs to ensure that object graph is populated prior to attaching, otherwise it will assume it is already done and then attempt to attach which will generate errors with identity inserts, foreign keys and such. Something along the lines of Find(key) needs to be used first.
The text was updated successfully, but these errors were encountered: