<?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 : MS EF Supports &quot;Join Tables&quot; that DevForce EF Does not</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : MS EF Supports &quot;Join Tables&quot; that DevForce EF Does not</description>
  <pubDate>Sat, 18 May 2013 02:10:03 -700</pubDate>
  <lastBuildDate>Tue, 06 May 2008 13:12:39 -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=734</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>MS EF Supports &quot;Join Tables&quot; that DevForce EF Does not : Adam, Phil:  We hear you, and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2941#2941</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 734<br /><strong>Posted:</strong> 06-May-2008 at 1:12pm<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3>Adam, Phil:</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3>We hear you, and we're working on it. There are difficulties associated with information that Microsoft exposes (or doesn't) about foreign keys on its EntityObjects, and as the EF software is still itself in beta this is a moving target. Initially Microsoft didn't expose the foreign keys on *any* entities and enough developers complained that they began doing so.&nbsp; And there are a whole special set of issues with the linking entities that the EF hides altogether. But we'll get it working, so stay tuned.</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3>For those designing new databases, I'd like to make the case for always using a single-column, arbitrary primary key (which, from the EF's viewpoint, constitutes payload) in every table.&nbsp; This solves the EF issues and is, I think, desirable for other reasons as well.&nbsp; Eliminating the primary key style as a discriminator between linking and other tables gives you a nice flexibility to let the entities embodied in linking tables evolve into things that have significance in the own right (as does an Order that serves as the linking entity between Customers and SalesReps, Customers and Shippers, and SalesReps and Shippers.) You treat all entities the same way, as far as primary key is concerned, and a type can evolve as needed without causing you to change your style of working with it mid-stream.&nbsp; In the EF, the distinction between how entities with and without payload are handled guarantees that you *will* have to change your strategy if a payload-free linking entity suddenly needs to be made richer.&nbsp; I'd rather just allow for such evolution up front.</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3>It's easy to code many-to-many navigation properties into your entities. Each such property takes a couple of lines of code (one line if you wish!). We could generate them, too, if we were to see sufficient demand for that. The problem there is that not all many-to-many relations defined in a database are necessarily significant from a business viewpoint, and we don't want to generate a lot of unnecessary stuff; so then we might need a UI to allow you to tell us which of the many many-to-manys you actually want. 8-) But it could certainly be done.</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3>Greg Dunn</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3>Training and Documentation Manager</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3>IdeaBlade</P><DIV></DIV></FONT>]]>
   </description>
   <pubDate>Tue, 06 May 2008 13:12:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2941#2941</guid>
  </item> 
  <item>
   <title>MS EF Supports &quot;Join Tables&quot; that DevForce EF Does not : We would also like to see many-to-many...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2899#2899</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=241" rel="nofollow">AdamC</a><br /><strong>Subject:</strong> 734<br /><strong>Posted:</strong> 29-Apr-2008 at 11:09am<br /><br />We would also like to see many-to-many relationships in DEF.&nbsp; We have an extremely large database (900+ tables) and would prefer not to add dozens of payload columns just to get the DEF code to compile.&nbsp; I believe code generated by DevForce should at least compile unless the customer has done something out of the ordinary in the database.&nbsp; Many-to-many relationships are very common and should probably be supported. <br>]]>
   </description>
   <pubDate>Tue, 29 Apr 2008 11:09:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2899#2899</guid>
  </item> 
  <item>
   <title>MS EF Supports &quot;Join Tables&quot; that DevForce EF Does not : Lack of a true &amp;#034;Association&amp;#034;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2798#2798</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=293" rel="nofollow">philpastor</a><br /><strong>Subject:</strong> 734<br /><strong>Posted:</strong> 09-Apr-2008 at 10:11am<br /><br /><DIV></DIV>Lack of a true "Association" is a show stopper for me as well ... although we are also still in evaluation mode.]]>
   </description>
   <pubDate>Wed, 09 Apr 2008 10:11:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2798#2798</guid>
  </item> 
  <item>
   <title>MS EF Supports &quot;Join Tables&quot; that DevForce EF Does not : FYI, I refactored my schema to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2727#2727</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=276" rel="nofollow">ryanhaney</a><br /><strong>Subject:</strong> 734<br /><strong>Posted:</strong> 20-Mar-2008 at 8:28pm<br /><br /><DIV>FYI, I refactored my schema to not be so flexible - probably won't need&nbsp;all the&nbsp;many-to-many relationships anyways :-).</DIV><DIV>&nbsp;</DIV><DIV>BUT, I CAN see the scenario - and I see v1 RTM support as necessary :-).</DIV><DIV>&nbsp;</DIV><DIV>Code compiles now!</DIV><DIV>&nbsp;</DIV><DIV>Time to have some fun!</DIV>]]>
   </description>
   <pubDate>Thu, 20 Mar 2008 20:28:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2727#2727</guid>
  </item> 
  <item>
   <title>MS EF Supports &quot;Join Tables&quot; that DevForce EF Does not : It is a show stopper for me -...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2722#2722</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=276" rel="nofollow">ryanhaney</a><br /><strong>Subject:</strong> 734<br /><strong>Posted:</strong> 20-Mar-2008 at 1:22pm<br /><br />It is a show stopper for me - but I am still in evaluation mode.]]>
   </description>
   <pubDate>Thu, 20 Mar 2008 13:22:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2722#2722</guid>
  </item> 
  <item>
   <title>MS EF Supports &quot;Join Tables&quot; that DevForce EF Does not : You&amp;#039;re correct that many-many...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2720#2720</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 734<br /><strong>Posted:</strong> 20-Mar-2008 at 11:08am<br /><br />You're correct that many-many relationships are supported in EF but not (yet) in DEF.&nbsp; At this time, to work around the issue you need to add "payload" to your join table.&nbsp; "Payload" can be any additional column, and ensures that an Entity is created for the table, instead of just the association.<DIV>&nbsp;</DIV><DIV>I'd like to say we'll address this in Beta2, but it looks like we probably won't get to this until 1st release at the earliest.&nbsp; If it's a show stopper issue for you let us know, and we'll bump the priority.&nbsp; </DIV>]]>
   </description>
   <pubDate>Thu, 20 Mar 2008 11:08:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2720#2720</guid>
  </item> 
  <item>
   <title>MS EF Supports &quot;Join Tables&quot; that DevForce EF Does not : I have a database that has many...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2719#2719</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=276" rel="nofollow">ryanhaney</a><br /><strong>Subject:</strong> 734<br /><strong>Posted:</strong> 20-Mar-2008 at 7:13am<br /><br /><P>I have a database that has many tables that follow the same relationship structure:</P><DIV>Members (MemberID,First,Last,Username,Password)</DIV><DIV>Accounts (AccountID,Brand,Number)</DIV><DIV>MemberAccounts (MemberID,AccountID)</DIV><DIV>&nbsp;</DIV><DIV>This scenario works in Microsoft EF - and all the objects are generated correctly - but I I cannot get generated code to compile in DevForce EF.</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV><DIV>&nbsp;</DIV><DIV>Ryan Haney</DIV>]]>
   </description>
   <pubDate>Thu, 20 Mar 2008 07:13:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=734&amp;PID=2719#2719</guid>
  </item> 
 </channel>
</rss>