<?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 : Joins...</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Joins...</description>
  <pubDate>Thu, 21 May 2026 18:19:27 -700</pubDate>
  <lastBuildDate>Tue, 06 Apr 2010 15:55:43 -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=1684</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>Joins... : In order to get this to work,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1684&amp;PID=6449#6449</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1684<br /><strong>Posted:</strong> 06-Apr-2010 at 3:55pm<br /><br /><DIV>In order to get this to work, the assembly containing this code must be grant trust to System.Core.&nbsp; We've modified the templates for DevForce 2010 to do this automatically.</DIV><DIV>&nbsp;</DIV><DIV>For DevForce 2009 and for any new client assemblies you may create (in either product), you will need to add the following assembly level attribute (to AssemblyInfo.cs):</DIV><DIV>&nbsp;</DIV><DIV>&#091;assembly: InternalsVisibleTo("System.Core, PublicKey=00240000048000009400000006020000002400005253413100040000010001008d56c76f9e8649383049f383c44be0ec204181822a6c31cf5eb7ef486944d032188ea1d3920763712ccb12d75fb77e9811149e6148e5d32fbaab37611c1878ddc19e20ef135d0cb2cff2bfec3d115810c3d9069638fe4be215dbf795861920e5ab6f7db2e2ceef136ac23d5dd2bf031700aec232f6c6b1c785b4305c123b37ab")&#093;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 06 Apr 2010 15:55:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1684&amp;PID=6449#6449</guid>
  </item> 
  <item>
   <title>Joins... : Yes, we confirmed this issue as...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1684&amp;PID=6386#6386</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1684<br /><strong>Posted:</strong> 18-Mar-2010 at 3:10pm<br /><br />Yes, we confirmed this issue as well.&nbsp; There is a problem with the closure in Silverlight (as you noted, it works when you use a constant instead of i).<DIV>&nbsp;</DIV><DIV>We've added this to the bug base and will get it fixed.&nbsp; Thanks for pointing this out!</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 18 Mar 2010 15:10:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1684&amp;PID=6386#6386</guid>
  </item> 
  <item>
   <title>Joins... : Yes, I tried quite a few join...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1684&amp;PID=6383#6383</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=704" rel="nofollow">mikewishart</a><br /><strong>Subject:</strong> 1684<br /><strong>Posted:</strong> 18-Mar-2010 at 9:36am<br /><br />Yes, I tried quite a few join methods.&nbsp; Anything with a variable fails in Silverlight but works fine in the .net library<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var q1 = from o in mgr.Orders<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; join d in mgr.OrderDetails<br>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;&nbsp;&nbsp;&nbsp;&nbsp; .Where(r =&gt; r.d.Quantity &gt; i)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Select(r =&gt; r.o);<br><br>]]>
   </description>
   <pubDate>Thu, 18 Mar 2010 09:36:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1684&amp;PID=6383#6383</guid>
  </item> 
  <item>
   <title>Joins... : Hi Mike,  Thanks for mocking...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1684&amp;PID=6372#6372</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1684<br /><strong>Posted:</strong> 16-Mar-2010 at 5:45pm<br /><br />Hi Mike,<DIV>&nbsp;</DIV><DIV>Thanks for mocking up a simple example that runs against NorthwindIB!&nbsp; We will run some tests on it over here.</DIV><DIV>&nbsp;</DIV><DIV>In the meantine, have you tried the join syntax without using 'new'?&nbsp;&nbsp;I think it can be written as:</DIV><DIV>join d in mgr.OrderDetails on o.OrderID equals d.OrderID ...</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 16 Mar 2010 17:45:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1684&amp;PID=6372#6372</guid>
  </item> 
  <item>
   <title>Joins... : I&amp;#039;m a bit baffled on this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1684&amp;PID=6355#6355</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=704" rel="nofollow">mikewishart</a><br /><strong>Subject:</strong> 1684<br /><strong>Posted:</strong> 12-Mar-2010 at 3:21pm<br /><br />I'm a bit baffled on this one.&nbsp; I wrote it to simplify it and use NorthwindIB.&nbsp; Pretend we just didn't have a FK between Orders and OrderDetails.&nbsp; (I've tried a couple different join methods and all result with the same problem).<br><br>If I do the following with Silverlight:<br><br>&nbsp;&nbsp;&nbsp; public MainPage()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InitializeComponent();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DomainModelEntityManager mgr = new DomainModelEntityManager();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int i = 1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var q1 = from o in mgr.Orders<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; join d in mgr.OrderDetails<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on new { o.OrderID } equals new { d.OrderID }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where (d.Quantity &gt; i)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select o;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mgr.ExecuteQueryAsync(q1, callback, null);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; public void callback(EntityFetchedEventArgs&lt;Order&gt; args)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (args.Error != null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show(args.Error.Message);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (args.Result != null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show(args.Result.ToString());<br>&nbsp;&nbsp;&nbsp; }<br><br>The args.Error.Message says: "Attempt by method 'System.Linq.Expressions.Expression.CreateLambda(System.Type, System.Linq.Expressions.Expression, System.String, Boolean, System.Collections.ObjectModel.ReadOnlyCollection`1&lt;System.Linq.Expressions.ParameterExpression&gt;)' to access method 'System.Linq.Expressions.Expression`1&lt;System.Func`2&lt;&lt;&gt;f__AnonymousType0`2&lt;DomainModel.Order,DomainModel.OrderDetail&gt;,System.Boolean&gt;&gt;.Create(System.Linq.Expressions.Expression, System.String, Boolean, System.Collections.ObjectModel.ReadOnlyCollection`1&lt;System.Linq.Expressions.ParameterExpression&gt;)' failed."<br><br>However, the same code in a console app runs just fine.&nbsp; The only difference is the WCF and of course the actual library code.&nbsp; Any idea where the problem is?<br><br>Also... If I don't use a variable, it runs fine:&nbsp; d.Quantity &gt; <font color="#ff0000">1</font><br><br>Thanks.<br><br>]]>
   </description>
   <pubDate>Fri, 12 Mar 2010 15:21:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1684&amp;PID=6355#6355</guid>
  </item> 
 </channel>
</rss>