Error 11007: Object type "EntityName" is not displayed, it can also be called by a file with a left over a class (for example, entityname.cs ) in the folder of your solution ...
I ran into the same problem: Error 11007: Entity type 'EntityName' is not mapped. in VS2010 using TFS. I believe that this is most likely caused by the use of copy and paste and other changes to new objects in the designer. Even canceling changes to TFS, closing VS2010, etc. Did not work.
During the investigation, even though I returned to the last verified version in TFS, when I looked at the source folder (containing the .edmx file), I found the entityname.cs file associated with the violating object, which I tried to add, then deleted and recreated . This can also be seen using the Show All Files feature in VS2010 Solution Explorer.
Once the deleted file was deleted, EDMX could be edited. After the database schema has been updated to match, we no longer get an error when using the update model from the database (what we do in order to reference custom SQL functions, etc. - a few O / T, which I know).
I hope this helps someone else experience the same problem.
source share