<?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 Field Join</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : Multiple Field Join</description>
  <pubDate>Thu, 16 Apr 2026 23:50:42 -700</pubDate>
  <lastBuildDate>Wed, 31 Jul 2013 19:28:40 -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=4255</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 Field Join : Thank you for the quick response....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4255&amp;PID=16681#16681</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=2162" rel="nofollow">JaxGuyWestside</a><br /><strong>Subject:</strong> 4255<br /><strong>Posted:</strong> 31-Jul-2013 at 7:28pm<br /><br />Thank you for the quick response. &nbsp;I believe that's basically what I was doing; but I must have had a syntax error of some sort that was causing the problem. &nbsp;At least I had the right concept.<div><br></div><div>Thanks again!</div><div>JD</div>]]>
   </description>
   <pubDate>Wed, 31 Jul 2013 19:28:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4255&amp;PID=16681#16681</guid>
  </item> 
  <item>
   <title>Multiple Field Join : You should first read this - h...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4255&amp;PID=16673#16673</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> 4255<br /><strong>Posted:</strong> 30-Jul-2013 at 12:01pm<br /><br />You should first read this - <a href="http://drc.ideablade.com/devforce-2012/bin/view/&#068;ocumentati&#111;n/linq-join-examples" target="_blank">http://drc.ideablade.com/devforce-2012/bin/view/Documentation/linq-join-examples</A>&nbsp;- to determine whether you really do need&nbsp;a join.&nbsp; In most models, relationships can be expressed with navigation properties, for example: <DIV></DIV>&nbsp; aCustomer.Orders<DIV>&nbsp; anOrder.Customer</DIV><DIV>&nbsp;</DIV><DIV>If you do need to join entities which don't have an existing foreign key relationship, you can do so like you've done above.&nbsp; For example, here's a contrived example to join Northwind Employees and Users based on their names:</DIV><DIV>&nbsp;</DIV><DIV>var query = from e in entityManager.Employees<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; join u in entityManager.Users <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on new { id1 = e.FirstName, id2 = e.LastName } equals new { id1 = u.FirstName, id2 = u.LastName }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select e;</DIV><DIV>var results = query.ToList();</DIV><DIV>&nbsp;</DIV><DIV>The types and names of properties in the anonymous types used in the join must be the same, and here the "id1" and "id2" names aren't required.<BR>&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 30 Jul 2013 12:01:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4255&amp;PID=16673#16673</guid>
  </item> 
  <item>
   <title>Multiple Field Join : Hello,I&amp;#039;m trying to write...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4255&amp;PID=16667#16667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=2162" rel="nofollow">JaxGuyWestside</a><br /><strong>Subject:</strong> 4255<br /><strong>Posted:</strong> 30-Jul-2013 at 7:55am<br /><br />Hello,<div><br></div><div>I'm trying to write an DevForce LINQ query where I need to join on multiple fields. &nbsp;I looked in the documentation and found the examples for joins, but I didn't see an example that addressed this specific scenario. &nbsp;I searched the web for linq queries with multiple field joins and here is what I found which does convey what I'm trying to do; I just need to figure out how to do it for DevForce.</div><div><br></div><div><span style="line-height: 1.4;">from x in entity</span></div><div><div>join y in entity2 on new { x.field1, x.field2 } equals new { y.field1, y.field2 }</div></div><div><br></div><div>Any help is greatly appreciated!!</div><div>JD</div>]]>
   </description>
   <pubDate>Tue, 30 Jul 2013 07:55:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4255&amp;PID=16667#16667</guid>
  </item> 
 </channel>
</rss>