<?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 : How to use ESQL with “join” in IdeaBlade?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : How to use ESQL with “join” in IdeaBlade?</description>
  <pubDate>Fri, 10 Apr 2026 20:47:38 -700</pubDate>
  <lastBuildDate>Tue, 26 Mar 2013 08:32:32 -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=4068</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>How to use ESQL with “join” in IdeaBlade? : Hi Jason,I&amp;#039;m creating a feature...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4068&amp;PID=16128#16128</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> 4068<br /><strong>Posted:</strong> 26-Mar-2013 at 8:32am<br /><br />Hi Jason,<div><br></div><div>I'm creating a feature request for eSQL to support anonymous types.&nbsp;</div><div>At this point I can't guarantee if this is possible or not, so it will take some time to research and implement. (if possible)</div><div><br></div><div>I'd suggest using LinqPad. You can find more information about LinqPad at <a href="http://drc.ideablade.com/devforce-2012/bin/view/&#068;ocumentati&#111;n/linqpad-driver" target="_blank">http://drc.ideablade.com/devforce-2012/bin/view/Documentation/linqpad-driver</a>.</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 26 Mar 2013 08:32:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4068&amp;PID=16128#16128</guid>
  </item> 
  <item>
   <title>How to use ESQL with “join” in IdeaBlade? : The reason is we want to let some...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4068&amp;PID=16116#16116</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1818" rel="nofollow">JasonYan</a><br /><strong>Subject:</strong> 4068<br /><strong>Posted:</strong> 23-Mar-2013 at 6:58am<br /><br />The reason is we want to let some of our users with technical skills directly query data from our entity datasource. We don't have to maintain a UI to help them descibe their exact need in getting data.<br />we just execute the content.This is a quick solution and with the feature of using the relations(navigation properties) we already built into our entities. That was expected to be an advantage over pure SQL.]]>
   </description>
   <pubDate>Sat, 23 Mar 2013 06:58:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4068&amp;PID=16116#16116</guid>
  </item> 
  <item>
   <title>How to use ESQL with “join” in IdeaBlade? : The issue is that DevForce eSQL...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4068&amp;PID=16114#16114</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> 4068<br /><strong>Posted:</strong> 22-Mar-2013 at 6:10pm<br /><br />The issue is that DevForce eSQL queries unfortunately do not support anonymous projections.<br /><br />You can, however, build the same query using linq:<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var query = mgr<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SalesOrderHeaders <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Join(mgr.DespatchNote,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;so =&gt; so.OrderNumber,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;note =&gt; note.OrderNumber,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(so, note) =&gt; new { so.OrderNumber, note.DespatchNumber });<br /></pre></td></tr></table><br /><br />Is there any particular reason you chose to use eSQL?]]>
   </description>
   <pubDate>Fri, 22 Mar 2013 18:10:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4068&amp;PID=16114#16114</guid>
  </item> 
  <item>
   <title>How to use ESQL with “join” in IdeaBlade? : What I am looking for isactuallytheequivalenceof...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4068&amp;PID=16095#16095</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1818" rel="nofollow">JasonYan</a><br /><strong>Subject:</strong> 4068<br /><strong>Posted:</strong> 21-Mar-2013 at 7:41pm<br /><br />What I am looking for is&nbsp;actually&nbsp;the&nbsp;equivalence&nbsp;of the following code that I used in a EntityFramework project:<div><div><div>&nbsp;ObjectQuery&lt;DbDataRecord&gt; query = new ObjectQuery&lt;DbDataRecord&gt;(@"select so.ORDER_NUMBER,note.DESPATCH_NUMBER</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from SALES_ORDER_HEADERS as so</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;INNER JOIN DESPATCH_NOTES as note&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; on note.ORDER_NUMBER = so.ORDER_NUMBER</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ", entityContext);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;grid.ItemsSource = query;</div></div></div><div><br></div><div>the purpose here is to write Entity Sql string with INNER JOIN key word inside, and execute the string(of course it's composed during runtime) within IdeaBlade.</div><div><br></div><div>I wrote something like this:</div><div><br></div><div><div>input.Text = @"SELECT so.OrderNumber,note.DespatchNumber FROM SalesOrderHeaders AS so</div><div>&nbsp;INNER JOIN DespatchNote AS note on note.OrderNumber = so.OrderNumber</div><div>";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var query1 = new PassthruEsqlQuery(typeof(object), typeof(SalesOrderHeader), input.Text);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var results1 = query1.With(mgr).Execute();</div></div><div><br></div><div>and I got the error of this:</div><div>'DespatchNote' could not be resolved in the current scope or context. Make sure that all referenced variables are in scope, that required schemas are loaded, and that namespaces are referenced correctly. Near simple identifier, line 2, column 13.</div><div><br></div><div>So my question is how should I make the second entity known to the scope or context?</div>]]>
   </description>
   <pubDate>Thu, 21 Mar 2013 19:41:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4068&amp;PID=16095#16095</guid>
  </item> 
 </channel>
</rss>