<?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 : EntityQueryPager Question</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : EntityQueryPager Question</description>
  <pubDate>Sun, 12 Apr 2026 06:15:00 -700</pubDate>
  <lastBuildDate>Fri, 21 Oct 2011 13:10:25 -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=3045</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>EntityQueryPager Question : Hi Von,You won&amp;#039;t be loading...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3045&amp;PID=11922#11922</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> 3045<br /><strong>Posted:</strong> 21-Oct-2011 at 1:10pm<br /><br />Hi Von,<div><br></div><div>You won't be loading all records in the client when calling MoveToLastPage().</div><div>You won't load all records if you use Count() as well.</div><div><br></div><div>If you want to retrieve this value without having to call MoveToLastPage(), I suggest using Count(). This way you will be able to get the pagecount.</div><div><br></div><div>Regards,</div><div>&nbsp; &nbsp;Silvio.</div>]]>
   </description>
   <pubDate>Fri, 21 Oct 2011 13:10:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3045&amp;PID=11922#11922</guid>
  </item> 
  <item>
   <title>EntityQueryPager Question : Hi Silvio,  Got it, it works...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3045&amp;PID=11914#11914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3045<br /><strong>Posted:</strong> 20-Oct-2011 at 7:34pm<br /><br />Hi Silvio,<DIV>&nbsp;</DIV><DIV>Got it, it works when the MoveToLastPage() is called but I'm just curious if this process is the same as loading all the records then you're paging it in the client side? Because if that's so, it will be a huge delay when concerning ten thousands of records.</DIV><DIV>&nbsp;</DIV><DIV>I need to get the totaldatasource count in order to compute the pagecount (TotalDataSourceCount / PageSize).</DIV><DIV>I think it's better if you have a PageCount property as well as TotalDataSourceCount that doesn't need to call the MoveToLastPage() in order to get the count of the records from the datasource.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Von</DIV>]]>
   </description>
   <pubDate>Thu, 20 Oct 2011 19:34:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3045&amp;PID=11914#11914</guid>
  </item> 
  <item>
   <title>EntityQueryPager Question : Hi Silvio,  Hmmm.. does it mean...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3045&amp;PID=11912#11912</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3045<br /><strong>Posted:</strong> 20-Oct-2011 at 7:25pm<br /><br />Hi Silvio,<DIV>&nbsp;</DIV><DIV>Hmmm.. does it mean that I need to view all page before I can get the TotalDataSourceCount or just a call to the last page will do?</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>VOn</DIV>]]>
   </description>
   <pubDate>Thu, 20 Oct 2011 19:25:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3045&amp;PID=11912#11912</guid>
  </item> 
  <item>
   <title>EntityQueryPager Question : Hi Von,TotalDataSourceItemCount...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3045&amp;PID=11911#11911</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> 3045<br /><strong>Posted:</strong> 20-Oct-2011 at 5:37pm<br /><br />Hi Von,<div><br></div><div>TotalDataSourceItemCount will return -1 until the last page is fetched via a call to MoveToLastPage.</div><div>TotalItemCount&nbsp;will return -1 until all pages are fetched or the TotalDataSourceItemCount is known.</div><div><br></div><div>While&nbsp;TotalDataSourceItemCount returns the count of records available to be returned from the datasource, TotalItemCount will also include items only present in the client.</div><div><br></div><div>If you want to retrieve the total item count before reaching the last page, you will need to query this value:</div><div><br></div><div>var totalCount = mgr.Employees.Count();</div><div><br></div><div>Regards,</div><div>&nbsp; &nbsp;Silvio.</div>]]>
   </description>
   <pubDate>Thu, 20 Oct 2011 17:37:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3045&amp;PID=11911#11911</guid>
  </item> 
  <item>
   <title>EntityQueryPager Question : Hi,I&amp;#039;m trying to use EntityQueryPager&amp;lt;T&amp;gt;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3045&amp;PID=11898#11898</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3045<br /><strong>Posted:</strong> 20-Oct-2011 at 2:38am<br /><br />Hi,<div><br></div><div>I'm trying to use EntityQueryPager&lt;T&gt; class to handle my paging activities but it seems that the&nbsp;<span ="Apple-style-span" style="font-size: 11px; line-height: normal; white-space: nowrap; : rgb247, 247, 255; "><a href="http://drc.ideablade.com/Api&#068;ocumentati&#111;n/IdeaBlade.EntityModel~IdeaBlade.EntityModel.EntityQueryPager%601~TotalDataSourceItemCount.html" target="_blank">TotalDataSourceItemCount</a></span></div><div>and&nbsp;<span ="Apple-style-span" style="font-size: 11px; line-height: normal; white-space: nowrap; : rgb247, 247, 255; "><a href="http://drc.ideablade.com/Api&#068;ocumentati&#111;n/IdeaBlade.EntityModel~IdeaBlade.EntityModel.EntityQueryPager%601~TotalItemCount.html" target="_blank">TotalItemCount</a>&nbsp;</span>always return -1, what's the difference between the two?</div><div><br></div><div>What I'm trying to accomplish is to get the original item count from the datasource before the paging occurs.</div><div>Example if I have 10k records in the database and i paged it by 20, how can i get the count of 10k records?</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Thu, 20 Oct 2011 02:38:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3045&amp;PID=11898#11898</guid>
  </item> 
 </channel>
</rss>