Error 11007: Object type 'tableName' is not displayed. Is it because the primary key of the table is the identity column?
I am using EF 4 to create my entities from a database. I am getting the following error while trying to compile an assembly Model
(edmx file in a separate assembly). I only get error on tables that have primary keys as identity columns. This is problem? or am I just making bad judgments?
Error 11007: Entity type 'tableName' is not mapped.
Steps
- Using
Entity data model wizard
, I createdModel
mine (edmx file). - Right click the edmx file and
Add Code Generation Item
to create objects (usingAdo.net self tracking entity generator
). - Move objects to another assembly by moving
x.tt
and editing it to point to the edmx file in the other assembly. - Entity and model (edmx) are now in different assemblies, which allows me to have a multi-tier application.
I am unable to build the assembly Model
and I am getting the error
Error 11007: Entity type 'tableName' is not mapped.
I have checked solutions on the internet. Yes, all my tables have a primary key and the relationship between them is defined in terms of foreign keys. Any pointers to this?
Thanks, Dolly
+3
source to share
No one has answered this question yet
See similar questions:
or similar: