<?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 using Take</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Query using Take</description>
  <pubDate>Fri, 10 Apr 2026 19:24:56 -700</pubDate>
  <lastBuildDate>Fri, 26 Oct 2012 17:41:10 -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=3745</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 using Take : Unfortunately no. Expand will...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3745&amp;PID=14984#14984</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1524" rel="nofollow">jtraband</a><br /><strong>Subject:</strong> 3745<br /><strong>Posted:</strong> 26-Oct-2012 at 5:41pm<br /><br />Unfortunately no.&nbsp; Expand will simply expand whatever the rest of the query returns<br><br>so <br><br><div><div>var query = new entityModel.EntityQuery()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.from("Customers")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .where("CustId", "==", "1")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .expand("Orders");<br><br>will give you cust: 1 and all of its orders; we do not yet have a good way to say "give me cust: 1 and just its first 500 orders.<br><br>What we have looked at, but is still in the research stage is the ability to do subqueries in projections, so that you could <b>potentially, ( meaning not yet), do the following.</b><br><br><div>var query = new entityModel.EntityQuery()</div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.from("Customers")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .where("CustId", "==", "1")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .select("customerName, orders.take(500)");<br><br>Note that projections work today, but they cannot currently contain query clauses.<br><br>If this looks useful, please vote for this feature using the feedback mechanism on the web site. ( small icon on the right side of any Breeze website page labeled "Feedback").&nbsp; This helps us decide which features to focus on next. <br></div></div><br>]]>
   </description>
   <pubDate>Fri, 26 Oct 2012 17:41:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3745&amp;PID=14984#14984</guid>
  </item> 
  <item>
   <title>Query using Take : Hi there,Working my way through...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3745&amp;PID=14978#14978</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1554" rel="nofollow">Orizz</a><br /><strong>Subject:</strong> 3745<br /><strong>Posted:</strong> 26-Oct-2012 at 4:28am<br /><br />Hi there,<div><br></div><div>Working my way through Breeze and very impressed so far.</div><div><br></div><div>I was wondering if its possible to use a combination of Take / Expand in a query for example...</div><div><br></div><div><div>var query = new entityModel.EntityQuery()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.from("Customers").where("CustId", "==", "1").expand("Orders").take(500);</div></div><div><br></div><div><div>var query = new entityModel.EntityQuery()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.from("Customers").where("CustId", "==", "1").select().expand("Orders").take(500);</div></div><div><br></div><div><div>var query = new entityModel.EntityQuery()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.from("Customers").where("CustId", "==", "1").take(1).expand("Orders").take(500);</div></div><div><br></div><div>I've tried a combination of the above without any luck, I just want a top level Customer object and a list of limited Orders</div><div><br></div><div>Hope you can help!</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Fri, 26 Oct 2012 04:28:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3745&amp;PID=14978#14978</guid>
  </item> 
 </channel>
</rss>