Print Page | Close Window

DomainModel.EntityRelations not generated

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=985
Printed Date: 04-Jun-2025 at 7:30pm


Topic: DomainModel.EntityRelations not generated
Posted By: sebma
Subject: DomainModel.EntityRelations not generated
Date 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
http://www.ideablade.com/forum/uploads/370/DataModelCliniCon.zip - uploads/370/DataModelCliniCon.zip



Replies:
Posted By: sebma
Date 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'



Posted By: kimj
Date 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.


Posted By: sebma
Date 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!



Print Page | Close Window