<?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 : Incorrect record count on query</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Incorrect record count on query</description>
  <pubDate>Sat, 11 Apr 2026 17:43:14 -700</pubDate>
  <lastBuildDate>Mon, 04 Oct 2010 10:48:06 -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=2212</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>Incorrect record count on query : I found the problem but I don&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2212&amp;PID=8702#8702</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 2212<br /><strong>Posted:</strong> 04-Oct-2010 at 10:48am<br /><br />I found the problem but I don't know if this is a bug or not. I noticed that when the table was imported, there is no primary key assigned even though Access had one defined. Once I updated the imported table to have a primary key the query works. I know that every table should have a primary key but is it an absolute requirement? Is this a possible EF or DevForce issue]]>
   </description>
   <pubDate>Mon, 04 Oct 2010 10:48:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2212&amp;PID=8702#8702</guid>
  </item> 
  <item>
   <title>Incorrect record count on query : Have you tried querying the Table...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2212&amp;PID=8699#8699</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2212<br /><strong>Posted:</strong> 04-Oct-2010 at 9:26am<br /><br />Have you tried querying the Table directly through EF? Or use the model editor to query. Does the&nbsp;table have any joins &#091;associations&#093; in the model? Perhaps it joined incorrectly. I would test the results of just using EF, if those are correct then move to DevForce. Querying the database yourself means you are creating the query and thereby doesn't necessarily use the query that EF will. <DIV></DIV><DIV>&nbsp;</DIV><DIV>I would also turn detailed logging on in devforce&nbsp;that way you can see the query string its &#091;EF&#093;&nbsp;using.</DIV><span style="font-size:10px"><br /><br />Edited by midnit - 04-Oct-2010 at 9:28am</span>]]>
   </description>
   <pubDate>Mon, 04 Oct 2010 09:26:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2212&amp;PID=8699#8699</guid>
  </item> 
  <item>
   <title>Incorrect record count on query : I have a wierd problem with one...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2212&amp;PID=8698#8698</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 2212<br /><strong>Posted:</strong> 04-Oct-2010 at 8:24am<br /><br />I have a wierd problem with one table in my database. The table was created within SQL Server Management Studio by importing data from an Access database. A query from within Management Studio show 48645 records in the table. After updating my model from the database the new table is added and I save and build. When I access this table through DevForce I only get 4 records retruned. Using SQL Server Express 2008 R2 and Devforce 6.0.4.0&nbsp;The code I use is as follows:<DIV>&nbsp;</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: green">'Dim&nbsp;ticketsQuery&nbsp;=&nbsp;_mgr.EntityMgr.Tickets</SPAN><BR><SPAN style="COLOR: green">'Dim&nbsp;ticketsCollection&nbsp;As&nbsp;New&nbsp;ObservableCollection(Of&nbsp;Ticket)</SPAN><BR><SPAN style="COLOR: green">'ticketsQuery.ForEach(Sub(t)&nbsp;ticketsCollection.Add(t))</SPAN><BR><SPAN style="COLOR: green">'&nbsp;Dim&nbsp;accessTicketsQuery&nbsp;=&nbsp;_mgr.EntityMgr.AccessTickets.Where((Function(t)&nbsp;t.TicketDate&nbsp;&gt;=&nbsp;BeginDate&nbsp;And&nbsp;t.TicketDate&nbsp;&lt;=&nbsp;EndDate))</SPAN><BR><SPAN style="COLOR: blue">Dim</SPAN>&nbsp;accessTicketsQuery&nbsp;=&nbsp;_mgr.EntityMgr.AccessTickets<BR>&nbsp;_ticketsFromAccess.Clear()<BR>accessTicketsQuery.ForEach(<SPAN style="COLOR: blue">Sub</SPAN>(t)&nbsp;_ticketsFromAccess.Add(t))<BR>AccessTicketCount&nbsp;=&nbsp;_ticketsFromAccess.Count</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">&nbsp;</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">Note that the commented code was a test I did to see if this problem exists for another table and when executed that code produced</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">the proper number of records.</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">I've looked at logs and SQL Profiler and everything seems OK so how do I debug this issue?</PRE></DIV>]]>
   </description>
   <pubDate>Mon, 04 Oct 2010 08:24:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2212&amp;PID=8698#8698</guid>
  </item> 
 </channel>
</rss>