<?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 : Query Dynamic</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Query Dynamic</description>
  <pubDate>Sat, 11 Apr 2026 07:58:13 -700</pubDate>
  <lastBuildDate>Thu, 21 Jun 2012 17:08:29 -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=3505</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>Query Dynamic :   I&amp;#039;m not following what...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3505&amp;PID=13889#13889</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3505<br /><strong>Posted:</strong> 21-Jun-2012 at 5:08pm<br /><br />I'm not following what you are saying. Joining tables without a common key is not a reason to create queries on the fly. As long as two entities have one or more type compatible properties you can join them statically using the join operator. <div></div>LINQ is by definition a strongly typed and static language integrated query language. That means you need to know at design time what your query is going to be and what the types are that you are querying. If you don't know that, then you are in the realm of needing to dynamically build queries at runtime. ESQL and LINQ are two different things. <div>&nbsp;</div><div>.NET doesn't provide dyanamic LINQ out of the box, so DevForce adds this functionality. I'm not sure what you mean by forbidden to use this. Forbidden to use what?</div>]]>
   </description>
   <pubDate>Thu, 21 Jun 2012 17:08:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3505&amp;PID=13889#13889</guid>
  </item> 
  <item>
   <title>Query Dynamic :  The only reason to create queries...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3505&amp;PID=13888#13888</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1440" rel="nofollow">giotis</a><br /><strong>Subject:</strong> 3505<br /><strong>Posted:</strong> 21-Jun-2012 at 4:50pm<br /><br /><span id="result_" =""="" lang="en"><span ="hps"="">The only reason</span> <span ="hps"="">to create</span> queries on the fly&nbsp;<span ="hps"=""> is</span> <span ="hps"="">only when you need</span> <span ="hps"="">to join</span> <span ="hps"="">tables</span> <span ="hps"="">without a common</span> <span ="hps"="">key</span><span =""=""> or something else.</span> <span ="hps"=""><br>The</span> <span ="hps"="">creation of dynamic</span> <span ="hps"="">queries by</span> <span ="hps"="">the DefForce </span></span><span id="result_" =""="" lang="en"><span ="hps"="">technique </span></span><span id="result_" =""="" lang="en"><span ="hps"=""></span></span><span id="result_" =""="" lang="en"><span ="hps"=""></span><span ="hps"="">is quite difficult</span> <span ="hps"="">since</span> <span ="hps"="">I read</span> <span ="hps"="">and probably</span> <span ="hps"="">I will come <br>to the</span> ESQL </span><span id="result_" =""="" lang="en"><span ="hps"="">technique </span></span><span id="result_" =""="" lang="en"><span ="hps"="">only when</span> <span ="hps"="">necessary.<br>  <br></span></span><span id="result_" =""="" lang="en"><span ="hps"="">I want to use</span> <span ="hps"="">it only</span> f<span ="hps"="">or viewing</span><span>.</span> <span ="hps"="">Is there</span> <span ="hps"="">any specific reason</span> <span ="hps"="">that</span> <span ="hps"="">we</span> <span ="hps"="">are forbidden to use</span> <span ="hps"="">this ?</span><span =""=""></span></span><br><br><span id="result_" ="short_text"="" lang="en"><span ="hps"="">there is any sample&nbsp; - example ?</span></span><span style="font-size:10px"><br /><br />Edited by giotis - 21-Jun-2012 at 4:51pm</span>]]>
   </description>
   <pubDate>Thu, 21 Jun 2012 16:50:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3505&amp;PID=13888#13888</guid>
  </item> 
  <item>
   <title>Query Dynamic :   That would be using the dynamic...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3505&amp;PID=13887#13887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3505<br /><strong>Posted:</strong> 21-Jun-2012 at 3:44pm<br /><br />That would be using the dynamic LINQ feature in DevForce. It's not quite as simple as turning a string into a query, but it's fully dynamic and lets you dynamically compose a query at runtime.<div>&nbsp;</div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/dynamic-queries" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/dynamic-queries</a></div>]]>
   </description>
   <pubDate>Thu, 21 Jun 2012 15:44:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3505&amp;PID=13887#13887</guid>
  </item> 
  <item>
   <title>Query Dynamic : what is the best method to implement...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3505&amp;PID=13886#13886</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1440" rel="nofollow">giotis</a><br /><strong>Subject:</strong> 3505<br /><strong>Posted:</strong> 21-Jun-2012 at 2:45pm<br /><br /><span id="result_" ="" lang="en"><span ="hps">what</span> <span ="hps">is the best method</span> <span ="hps">to</span> <span ="hps">implement</span> <span ="hps">a LINQ query</span> <span ="hps">in</span> <span ="hps">runtime,</span> <span ="hps">without limiting</span> <span ="hps">functionality</span><span> of Cocktail.<br><br></span> <span ="hps">Something like this :<br><br></span></span><span id="result_" ="" lang="en"><span ="hps"><font color="#000099">string </font>str= "EntityManager.StaffingResources<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Where(r =&gt; r.Id == (Guid) keyValues&#091;0&#093;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include(r =&gt; r.Addresses)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include(r =&gt; r.PhoneNumbers)"</span></span><br><span id="result_" ="" lang="en"><span ="hps"><br><font color="#000099">IEntityQuery&nbsp; </font>query = </span></span><span id="result_" ="" lang="en"><span ="hps">FromStringTo</span></span><span id="result_" ="" lang="en"><span ="hps">EntityQuery</span></span><span id="result_" ="" lang="en"><span ="hps">(TempHireEntities, str); <br><font size="2"><br></font></span></span><font color="#990000" size="2"><span id="result_" ="short_text" lang="en"><span ="hps">Is this possible</span></span></font> ?<br><br><br><span id="result_" ="" lang="en"><span ="hps"></span></span>]]>
   </description>
   <pubDate>Thu, 21 Jun 2012 14:45:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3505&amp;PID=13886#13886</guid>
  </item> 
 </channel>
</rss>