<?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 : Count of Records</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Count of Records</description>
  <pubDate>Sun, 12 Apr 2026 16:35:25 -700</pubDate>
  <lastBuildDate>Wed, 14 Jul 2010 18:09:38 -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=1960</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>Count of Records : You are probably missing this:using...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1960&amp;PID=7633#7633</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> 1960<br /><strong>Posted:</strong> 14-Jul-2010 at 6:09pm<br /><br />You are probably missing this:<BR>using IdeaBlade.EntityModel;]]>
   </description>
   <pubDate>Wed, 14 Jul 2010 18:09:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1960&amp;PID=7633#7633</guid>
  </item> 
  <item>
   <title>Count of Records : Thanks for reply,  I don&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1960&amp;PID=7630#7630</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=824" rel="nofollow">bjmreddy</a><br /><strong>Subject:</strong> 1960<br /><strong>Posted:</strong> 14-Jul-2010 at 1:19pm<br /><br />Thanks for reply, <DIV>I don't have <FONT size=2 face=C&#111;nsolas>AsScalarAsync as a option, am I missing somthing here?</FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas></FONT>&nbsp;</DIV><DIV><FONT size=2 face=C&#111;nsolas>thanks</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 14 Jul 2010 13:19:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1960&amp;PID=7630#7630</guid>
  </item> 
  <item>
   <title>Count of Records : Yes, it should look something...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1960&amp;PID=7620#7620</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> 1960<br /><strong>Posted:</strong> 13-Jul-2010 at 6:38pm<br /><br />Yes, it should look something like this:<DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas></FONT></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>var</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> op = _mgr.Assets.Where(a =&gt; a.ParentID == customerid).AsScalarAsync().Count();</FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>op.Completed += </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>new</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>EventHandler</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&lt;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>EntityScalarQueriedEventArgs</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&lt;</FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>int</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&gt;&gt;(op_Completed);</FONT></FONT></FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&nbsp;</DIV></FONT></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 13 Jul 2010 18:38:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1960&amp;PID=7620#7620</guid>
  </item> 
  <item>
   <title>Count of Records : Hello All,  I am using silverlight...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1960&amp;PID=7604#7604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=824" rel="nofollow">bjmreddy</a><br /><strong>Subject:</strong> 1960<br /><strong>Posted:</strong> 13-Jul-2010 at 7:38am<br /><br />Hello All,<DIV>&nbsp;</DIV><DIV>I am using silverlight with Ideablade in one of our applications, below is the ExecuteQueryAsync method to execute query, can you guys please help me how to get count of the records other than looping through results and counting.</DIV><DIV>&nbsp;</DIV><DIV>below is the code I am using </DIV><DIV>&nbsp;</DIV><FONT size=2><P>_mgr.ExecuteQueryAsync(_mgr.Assets.Where(a =&gt; a.ParentID == customerid </FONT><FONT size=2>) , GotAssets, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>null</FONT></FONT><FONT size=2>);</P><DIV></DIV><DIV></DIV><DIV>I tried to use </DIV><DIV>_mgr.ExecuteQueryAsync(_mgr.Assets.Where(a =&gt; a.ParentID == customerid <FONT size=2>).Count() , GotAssets, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>null</FONT></FONT><FONT size=2>);</DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>but it throws error.</DIV><DIV>&nbsp;</DIV><DIV>Please help or point me to similar examples.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV></FONT></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 13 Jul 2010 07:38:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1960&amp;PID=7604#7604</guid>
  </item> 
 </channel>
</rss>