title: SQL many to many recursive associations?
body: <p>I have a conference table. A conference can have a list of associated conferences. Is this what is refereed to as a recursive associations?</p>
  
  <p>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?</p>
  
  <p>I though the above was correct but when creating and building my edmx I get:</p>
  
  <p>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.</p>
  
  <pre><code>CREATE TABLE [dbo].[ConferenceAssociatedConference](
      [ConferenceId] [nvarchar](50) NOT NULL,
      [AssociatedConferenceId] [nvarchar](50) NOT NULL,
   CONSTRAINT [PK_ConferenceAssociatedConference] PRIMARY KEY CLUSTERED 
  (
      [ConferenceId] ASC,
      [AssociatedConferenceId] ASC
  )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
  ) ON [PRIMARY]
  
  GO
  
  ALTER TABLE [dbo].[ConferenceAssociatedConference]  WITH CHECK ADD      CONSTRAINT [FkConfAssociatedConf_AssociatedConferenceId] FOREIGN     KEY([AssociatedConferenceId])
  REFERENCES [dbo].[Conference] ([ConferenceId])
  GO
  
  ALTER TABLE [dbo].[ConferenceAssociatedConference] CHECK CONSTRAINT     [FkConfAssociatedConf_AssociatedConferenceId]
  GO
  
  ALTER TABLE [dbo].[ConferenceAssociatedConference]  WITH CHECK ADD      CONSTRAINT [FkConfAssociatedConf_ConferenceId] FOREIGN KEY([ConferenceId])
  REFERENCES [dbo].[Conference] ([ConferenceId])
  GO
  
  ALTER TABLE [dbo].[ConferenceAssociatedConference] CHECK CONSTRAINT  [FkConfAssociatedConf_ConferenceId]
  GO
  </code></pre>