I'm in the process of migrating a project from Entity Framework 4.3 running on .net 4 to Entity Framework 5 running on .net 4.5. Without making any changes, when I try to run the project the code-first model configuration fails with a System.Data.MappingException with the message:
(495,10) : error 3034: Problem in mapping fragments starting at lines 495, 536:Two entities with different keys are mapped to the same row. Ensure these two mapping fragments do not map two groups of entities with different keys to the same group of rows.
[5 other similar paragraphs removed]
The message does not specify which entity or relationship is causing the problem and my model is reasonably complex. Is there any way that I can get some more helpful information to to make it easier to diagnose the problem?