When Add Object() is called, a temporary Entity Key is generated and the Entity State is set to 'Added', as shown below: When context.
First retrieve an instance of the entity from the Entity Set), then edit the properties of the Entity and finally call Save Changes() on the context. Run Message Loop Inner(Int32 reason, Application Context context) at System. Run Message Loop(Int32 reason, Application Context context) at System. Currently i'm trying to update my database with a new highscore when ever the player dies. ID = 6; //I just hardcoded in 6 to make sure i wasent because of the new Id //thing, and i have checked if theres already something on the sixths spot as well. But it keeps throwing that exception at me, no matter what i choose to try and save.