New Posts New Posts RSS Feed: DomainModel.EntityRelations not generated
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

DomainModel.EntityRelations not generated

 Post Reply Post Reply
Author
sebma View Drop Down
Groupie
Groupie
Avatar

Joined: 19-Aug-2008
Location: Singapore
Posts: 66
Post Options Post Options   Quote sebma Quote  Post ReplyReply Direct Link To This Post Topic: DomainModel.EntityRelations not generated
    Posted: 04-Nov-2008 at 10:06am

I have 2 derived entities that contains navigation property, created and builds fine in edmx. However I do not understand why the EF's EntityRelations are not generated, perhaps I missed something in the object mapper?

Hope if anyone can help.
 
Thanks in advance.(I attach my edmx)
Sebastian
Back to Top
sebma View Drop Down
Groupie
Groupie
Avatar

Joined: 19-Aug-2008
Location: Singapore
Posts: 66
Post Options Post Options   Quote sebma Quote  Post ReplyReply Direct Link To This Post Posted: 04-Nov-2008 at 12:46pm
The build errors I have were:
\DomainModel\DomainModel.DataModelCliniCon.Designer.cs(2648,113): error CS0117: 'DomainModel.EntityRelations' does not contain a definition for 'FK_Employment_Organisation'

\DomainModel.DataModelCliniCon.Designer.cs(2331,117): error CS0117: 'DomainModel.EntityRelations' does not contain a definition for 'FK_Employment_Organisation'

\DomainModel.DataModelCliniCon.Designer.cs(2370,111): error CS0117: 'DomainModel.EntityRelations' does not contain a definition for 'FK_Employment_Person'

\DomainModel\DomainModel.DataModelCliniCon.Designer.cs(943,113): error CS0117: 'DomainModel.EntityRelations' does not contain a definition for 'FK_Employment_Person'

Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 05-Nov-2008 at 12:52pm
Sebastian, I can't repro the problem in version 4.2.1.5.  This problem with incorrect generation of entity relations when entity sub-types are involved did occur in prior versions of DEF, so if you upgrade you should be OK.
Back to Top
sebma View Drop Down
Groupie
Groupie
Avatar

Joined: 19-Aug-2008
Location: Singapore
Posts: 66
Post Options Post Options   Quote sebma Quote  Post ReplyReply Direct Link To This Post Posted: 09-Nov-2008 at 7:20am
Yes, problem solved. With version 4.2.1.5, the entity relations (and corresponding navigation properties) for sub-types are generated as expected.
 
Thanks Kim!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down