<?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 : One to one associations</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : One to one associations</description>
  <pubDate>Thu, 30 Jul 2026 01:38:18 -700</pubDate>
  <lastBuildDate>Wed, 25 May 2011 07:29:55 -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=2713</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>One to one associations :   Hi Silvio, thanks for the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2713&amp;PID=10819#10819</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1112" rel="nofollow">samir</a><br /><strong>Subject:</strong> 2713<br /><strong>Posted:</strong> 25-May-2011 at 7:29am<br /><br />Hi Silvio, thanks for the quick response.<div> </div><div>Let´s say my two entities are A and B, each with an Int32 Id property as entity key. To create the Referential Constraint I´ve created a property named AId (Int32) to my B entity and set the Referential Constraint as so:</div><div> </div><div>Principal: A</div><div>Dependent: B</div><div>Principal Key: Id</div><div>Dependent Property: AId</div><div> </div><div>I understand that from the database´s point of view this would allow more than one B entity to associate with the same A entity, which is why (I believe) DevForce throws this error:</div><div> </div><div>Error 113: Multiplicity is not valid in Role 'B' in relationship 'AB'. Because the Dependent Role properties are not the key properties, the upper bound of the multiplicity of the Dependent Role must be *.</div><div> </div><div>Is setting the AId property to be an Entity Key the only way to make this work? Anyway, I set the AId to be an Entity Key and now B has two Entity Keys - Id and AId - but DevForce still gives me the same Error 113.</div><div> </div><div>So I tried removing the Id property from the B Entity and now everything works.</div><div> </div><div>Thanks!</div>]]>
   </description>
   <pubDate>Wed, 25 May 2011 07:29:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2713&amp;PID=10819#10819</guid>
  </item> 
  <item>
   <title>One to one associations : Hi samir,  After creating the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2713&amp;PID=10814#10814</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2713<br /><strong>Posted:</strong> 24-May-2011 at 5:13pm<br /><br />Hi samir,<DIV>&nbsp;</DIV><DIV>After creating the Association, you will need to add&nbsp;a Referential Constaint for this Association.</DIV><DIV>You will be able to add it in the Association Properties.</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>&nbsp;&nbsp; Silvio.</DIV>]]>
   </description>
   <pubDate>Tue, 24 May 2011 17:13:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2713&amp;PID=10814#10814</guid>
  </item> 
  <item>
   <title>One to one associations :   Hello.Can anyone point me...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2713&amp;PID=10812#10812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1112" rel="nofollow">samir</a><br /><strong>Subject:</strong> 2713<br /><strong>Posted:</strong> 24-May-2011 at 4:35pm<br /><br />Hello.<div>&nbsp;</div><div>Can anyone point me how to create one to one relationships using the Entity Framework designer (model first)? When I create this type of association Visual Studio disables the "Add foreign key properties to the 'xxx' entity', wich ends up in DevForce throwing erros like</div><div>&nbsp;</div><div>'DevForce requires that foreign key columns be included in the model. This must be set when the EDMX is first created. If you are upgrading from DevForce 2009, you cannot use the old model and should recreate it using the Entity Framework for .NET 4.0.&nbsp; The following associations were not set up with foreign key associations enabled: ....'</div><div>&nbsp;</div><div>Thanks,</div><div>Samir</div>]]>
   </description>
   <pubDate>Tue, 24 May 2011 16:35:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2713&amp;PID=10812#10812</guid>
  </item> 
 </channel>
</rss>