Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 SQL recursive associations?

Author  Topic 

alex_808
Starting Member

16 Posts

Posted - 2015-02-23 : 21:24:58
I have a conference table. A conference can have a list of associated conferences. Is this what is refereed to as a recursive associations?

And is this accomplished by having another table ConferenceAssociatedConference with two fields (ConferenceId, AssociatedConferenceId) and these two fields are both foreign keys pointing on the same ConferenceId field of the Conference table?

I though the above was correct but when creating and building my edmx I get:

Error 6 Error 3034: Problem in mapping fragments starting at lines 875, 982:Two entities with possibly different keys are mapped to the same row. Ensure these two mapping fragments map both ends of the AssociationSet to the corresponding columns.

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2015-02-24 : 20:57:24
It would not be recursive unless some conference can be a child or grandchild of itself.
Go to Top of Page
   

- Advertisement -