Reputation: 5027
I have been following the examples from Chapter 2 in an early access edition of Entity Framework 4 in Action whereby one creates a database schema, generates an entity model from the database schema, and then performs some entity customizations with regards to object inheritance, adding complex properties, etc. Everything was great until I closed and then restarted Visual Studio 2010 SP1. After restarting, I can no longer open the EDMX file with the designer. I get a dialog box stating "Cannot load 'C:\Projects\Test\Test.MyModel\Model.edmx': An item with the same key has already been added.". There is no further information in the Output window.
Upvotes: 1
Views: 1679
Reputation: 6665
It's an XML file so you can open it up in text mode and see what the problem is. Sounds like there could be items with duplicate names somehow.
Upvotes: 1