I have some code that saves a many to many relationship in code. It was working fine with Entity Framework 4.1 but after updating to Entity Framework 5, it\'s failing.
I can confirm this is a bug in EF5, although I'm still not sure how it worked in 4.3.1.
The problem is that we are not correctly associating the LeftKey/RightKey calls with their corresponding navigation properties.
I will file an EF6 bug over on our CodePlex project site.
To workaround, I think you will need to either:
Sorry for the inconvenience.
UPDATE: Here is the bug.