<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Multiple Parent Tables</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Multiple Parent Tables</description>
  <pubDate>Sun, 12 Apr 2026 08:50:59 -700</pubDate>
  <lastBuildDate>Sat, 12 Nov 2011 17:09:21 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3090</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Multiple Parent Tables : Never mind, I got this working...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3090&amp;PID=12044#12044</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3090<br /><strong>Posted:</strong> 12-Nov-2011 at 5:09pm<br /><br />Never mind, I got this working by changing the data structure a bit.<br /><br />Greg]]>
   </description>
   <pubDate>Sat, 12 Nov 2011 17:09:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3090&amp;PID=12044#12044</guid>
  </item> 
  <item>
   <title>Multiple Parent Tables : I have two tables:  Contacts and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3090&amp;PID=12043#12043</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3090<br /><strong>Posted:</strong> 11-Nov-2011 at 8:06pm<br /><br />I have two tables:  Contacts and Addresses.<br /><br />The Addresses table has a field called EntityId.  There is a foreign key relation to Contacts.  This works just fine, and the navigation properties work as expected between Contacts and Addresses.<br /><br />Now I add a new table in called Companies.  I add a second Foreign key relation to Addresses, so it can relate back to either a Contact or a company.<br /><br />As soon as I do this, the navagation between Contacts and Addresses breaks.  The error that is thrown is System.Data.SqlClient.SqlException: Invalid column name 'Company_Id'<br /><br />It appears what is happening is that it is trying to populate the Addresses-&gt;Companies properties and of course fails as Companies isn't available just then.<br /><br />What I am tring to achieve is that I can relate an address to either a Contact or a Company.<br /><br />Greg<br />]]>
   </description>
   <pubDate>Fri, 11 Nov 2011 20:06:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3090&amp;PID=12043#12043</guid>
  </item> 
 </channel>
</rss>