Click here to Skip to main content
15,889,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to query a data model built on EF, but any and all queries I run throw an exception that states

The item with identity 'Id' already exists in the metadata collection.

Googling this yields very little useful information, except that for some databases, like DB2, the data model doesn't allow two tables to have the same PK column name. But, I've removed all the DbSets besides the one I am querying, and it has no relations so no other tables should be involved. What is wrong here?

BTW, the Id property is inherited by the base entity shared by all my entities.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900