I have an Update method in my repository which I\'m using to update articles on my project.I was initially using this method only to carry out admin edits for articles.It handles that correctly, but I
I am getting an Error \"An object with the same key already exists in the ObjectStateManager. The ObjectStateManager cannot track multiple objects with the same key.\"
I have an Entity Framework 4.0 model implemented with pure POCO\'s (no code generation, no self-tracking entities, just plain old CLR objects).
I have a edited RESTful wizard based upon Shoulders of Giants | A RESTful Wizard Using ASP.Net MVC… Perhaps? . This wizard has a CANCEL button which, when pressed, fires the code below.
How to update ALL the dirty entities from the data store, and reset their changed values to the original store value?