<?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 : Cache is bypassed</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Cache is bypassed</description>
  <pubDate>Wed, 13 May 2026 19:25:50 -700</pubDate>
  <lastBuildDate>Fri, 16 Sep 2011 08:14:33 -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=2954</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>Cache is bypassed : Hi Silvio,This morning, I did...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11679#11679</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1263" rel="nofollow">Frederic</a><br /><strong>Subject:</strong> 2954<br /><strong>Posted:</strong> 16-Sep-2011 at 8:14am<br /><br />Hi Silvio,<div><br></div><div>This morning, I did the upgrade to version 6.1.2 of Devforce and you are right my problem has gone away both in my small sample application I sent you the other day as well as my main application.</div><div><br></div><div>I would consider the case closed. A thumbs up to you.</div><div><br></div><div>Good job, thanks</div><div><br></div><div>Frederic</div>]]>
   </description>
   <pubDate>Fri, 16 Sep 2011 08:14:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11679#11679</guid>
  </item> 
  <item>
   <title>Cache is bypassed : Hi Frederic,I have tested and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11673#11673</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> 2954<br /><strong>Posted:</strong> 15-Sep-2011 at 12:36pm<br /><br />Hi Frederic,<div><br></div><div>I have tested and verified the issue in DevForce 6.0.9.<div><br></div><div>Also, I checked and this issue is no longer present in the latest version of DevForce (6.1.2)</div><div><br></div><div>Upgrading will resolve the problem.</div><div><span ="Apple-style-span" style="font-family: 'Times New Roman'; line-height: normal; font-size: medium; "><span ="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; "><br></span></span></div><div><span ="Apple-style-span" style="font-family: 'Times New Roman'; line-height: normal; font-size: medium; "><span ="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; ">Kind regards,</span></span></div><div>&nbsp; &nbsp;Silvio.</div></div>]]>
   </description>
   <pubDate>Thu, 15 Sep 2011 12:36:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11673#11673</guid>
  </item> 
  <item>
   <title>Cache is bypassed : Hi Silvio,as mentionned, here...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11667#11667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1263" rel="nofollow">Frederic</a><br /><strong>Subject:</strong> 2954<br /><strong>Posted:</strong> 13-Sep-2011 at 1:10pm<br /><br />Hi Silvio,<div><br></div><div>as mentionned, here are the sample files:</div><div><a href="uploads/1263/TestCount.zip" target="_blank">uploads/1263/TestCount.zip</a><br></div><div><br></div><div>Frederic</div>]]>
   </description>
   <pubDate>Tue, 13 Sep 2011 13:10:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11667#11667</guid>
  </item> 
  <item>
   <title>Cache is bypassed : Thanks for the update, Frederic.I&amp;#039;ll...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11666#11666</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> 2954<br /><strong>Posted:</strong> 13-Sep-2011 at 12:44pm<br /><br />Thanks for the update, Frederic.<div><br></div><div>I'll test it here and follow up.</div><div><br></div><div>Silvio.</div>]]>
   </description>
   <pubDate>Tue, 13 Sep 2011 12:44:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11666#11666</guid>
  </item> 
  <item>
   <title>Cache is bypassed : Thanks a lot Silvio to provide...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11665#11665</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1263" rel="nofollow">Frederic</a><br /><strong>Subject:</strong> 2954<br /><strong>Posted:</strong> 13-Sep-2011 at 12:42pm<br /><br /><div>Thanks a lot Silvio to provide time to assist me,</div><div><br></div><div>Actually I did not mention the fact that in my sample I made a derivation of entity to produce the problem. At first, I thought it was not important to mention but I must be wrong.</div><div><br></div><div>I made changes to the model so that to get a derived entity as shown in the picture at the end of this post.</div><div><br></div><div>Anyway, this is the sample I have been using:</div><div><br></div><div><div><span ="Apple-tab-span" style="white-space: pre; ">		</span>static void Main(string&#091;&#093; args)</div><div><span ="Apple-tab-span" style="white-space: pre; ">		</span>{</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>NorthwindIBEntities manager = new NorthwindIBEntities(</div><div><span ="Apple-tab-span" style="white-space: pre; ">				</span>shouldConnect: true,</div><div><span ="Apple-tab-span" style="white-space: pre; ">				</span>dataSourceExtension: String.Empty,</div><div><span ="Apple-tab-span" style="white-space: pre; ">				</span>entityServiceOption: IbEm.EntityServiceOption.UseLocalService,</div><div><span ="Apple-tab-span" style="white-space: pre; ">				</span>compositionContextName: String.Empty);</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>IbEm.EntityQuery&lt;Employee&gt; employees = manager.GetQuery&lt;Employee&gt;();</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>IbEm.EntityQuery&lt;Group&gt; groups = manager.GetQuery&lt;Group&gt;();</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>Group u2 = groups.Where&lt;Group&gt;(gr =&gt; gr.Name == "U2").First&lt;Group&gt;();</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>employees = employees.Where(e =&gt; e.Group.Name == "U2") as IbEm.EntityQuery&lt;Employee&gt;;</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>Int32 employeeCount = employees.AsEnumerable&lt;Employee&gt;().Count();</div><div><br></div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>Employee newEmployee = new Employee();</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.EmployeeID = 11;</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.LastName = "Hewson";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.FirstName = "Paul David";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.Title = "Sales Representative";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.TitleOfCourtesy = "Mr.";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.BirthDate = new DateTime(1960, 5, 10);</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.HireDate = new DateTime(2011, 9, 7);</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.Address = "Sunset Boulevard";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.City = "Hollywood";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.Region = "CA";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.PostalCode = "22222";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.Country = "USA";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.HomePhone = "(222) 222-2222";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.Extension = "222";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.Notes = "Former singer of U2";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.PhotoPath = "http://en.wikipedia.org/wiki/File:Bono_at_the_2009_Tribeca_Film_Festival.jpg";</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.ReportsToEmployeeID = 2;</div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.RowVersion = 0;</div><span ="Apple-tab-span" style="white-space: pre; ">			</span>newEmployee.Group = u2;&nbsp;<div><span ="Apple-tab-span" style="white-space: pre; ">			</span>manager.AddEntity(newEmployee);</div><div><br></div><div><span ="Apple-tab-span" style="white-space: pre; ">			</span>Int32 newEmployeeCount = employees.AsEnumerable&lt;Employee&gt;().Count();</div><div><span ="Apple-tab-span" style="white-space: pre; ">		</span>}</div></div><div><br></div><div>I can provide you with the exact code sample + the mdf file in the next post.</div><div><br></div><div>As a final note these are the modifications I made to the NorthwindIB model:</div><div><img src="http://www.ideablade.com/forum/uploads/1263/Cache_Bypassed_001.png" height="636" width="651" border="0" /><br></div><div><br></div><div>Thanks again for your dedication and time.</div><div><br></div><div>Frederic</div>]]>
   </description>
   <pubDate>Tue, 13 Sep 2011 12:42:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11665#11665</guid>
  </item> 
  <item>
   <title>Cache is bypassed :    Hi Frederic, I was not able...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11660#11660</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> 2954<br /><strong>Posted:</strong> 12-Sep-2011 at 5:26pm<br /><br />Hi Frederic,<div> </div><div>&nbsp;</div><div>I was not able to reproduce the issue here. The count value changed and the datasource was not hit the second time when executing the same query.</div><div> </div><div>&nbsp;</div><div>Here's my test (against NorthwindIB):</div><div> </div><div>&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"> mgr = </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">NorthwindIBEntities</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">();</font></font></div><div><font color="#008000" size="2" face="C&#111;nsolas"><font color="#008000" size="2" face="C&#111;nsolas"><font color="#008000" size="2" face="C&#111;nsolas"></font></font></font>&nbsp;</div><div>&nbsp;</div><div><font color="#008000" size="2" face="C&#111;nsolas"><font color="#008000" size="2" face="C&#111;nsolas"><font color="#008000" size="2" face="C&#111;nsolas">// Will hit datasource</font></font></font></div><div><font size="2" face="C&#111;nsolas"><font color="#0000ff"><font color="#0000ff"><font color="#0000ff">var</font></font></font> ordersCount = mgr.GetQuery&lt;<font color="#2b91af"><font color="#2b91af"><font color="#2b91af">Order</font></font></font>&gt;().Where(ord =&gt; ord.Employee.FirstName == <font color="#a31515"><font color="#a31515"><font color="#a31515">"Nancy Lynn"</font></font></font>).AsEnumerable&lt;<font color="#2b91af"><font color="#2b91af"><font color="#2b91af">Order</font></font></font>&gt;().Count();</font></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"></font></font></font>&nbsp;</div><div>&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"> newOrder = </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">Order</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">();</font></font></div><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">newOrder.OrderDate = </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">DateTime</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">.Today;</font></font></div><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">newOrder.Employee = mgr.GetQuery&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">Employee</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&gt;().Where(emp =&gt; emp.FirstName == </font></font><font color="#a31515" size="2" face="C&#111;nsolas"><font color="#a31515" size="2" face="C&#111;nsolas"><font color="#a31515" size="2" face="C&#111;nsolas">"Nancy Lynn"</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">).First&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">Employee</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&gt;();</font></font></div><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">mgr.AddEntity(newOrder);</font></font></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"></font></font></font>&nbsp;</div><div>&nbsp;</div><div><font color="#008000" size="2" face="C&#111;nsolas">// Will not hit datasource</font></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"> ordersCount2 = mgr.GetQuery&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">Order</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&gt;().Where(ord =&gt; ord.Employee.FirstName == </font></font><font color="#a31515" size="2" face="C&#111;nsolas"><font color="#a31515" size="2" face="C&#111;nsolas"><font color="#a31515" size="2" face="C&#111;nsolas">"Nancy Lynn"</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">).AsEnumerable&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">Order</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&gt;().Count();</font></font></div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><div> </div><div>&nbsp;</div><div>Have you by any chance modified DefaultQueryStrategy? (i.e. <font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">mgr.DefaultQueryStrategy</font></font>)</div><div> </div><div>&nbsp;</div><div>Could you provide a simple solution reproducing the issue? (preferably against NorthwindIB)</div><div> </div><div>&nbsp;</div><div>Also, you will find interesting these articles from DevForce Resource Center:</div><div> </div><div>&nbsp;</div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/query-strategy" target="_blank">Control query execution</a></div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/query-fetchstrategy" target="_blank">Control where the query executes</a></div><div> </div><div>&nbsp;</div><div>Regards,</div><div>   Silvio.</div><span style="font-size:10px"><br /><br />Edited by sbelini - 12-Sep-2011 at 5:28pm</span>]]>
   </description>
   <pubDate>Mon, 12 Sep 2011 17:26:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11660#11660</guid>
  </item> 
  <item>
   <title>Cache is bypassed : Good afternoon,Before posting,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11653#11653</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1263" rel="nofollow">Frederic</a><br /><strong>Subject:</strong> 2954<br /><strong>Posted:</strong> 09-Sep-2011 at 12:51pm<br /><br /><span ="Apple-style-span" style="font-family: 'Times New Roman'; line-height: normal; font-size: medium; "><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; "><div><span ="Apple-style-span">Good afternoon,<div><br></div><div>Before posting, I had a quick look to see if the question was already adressed but could not find the answer, still, I apologize if the issue was already discussed.</div><div><br></div><div>I'm using Devforce 2010 version 6.0.9.0 on SQL Server 2008 R2.</div><div><br></div><div>It seems that an&nbsp;EntityQuery is not using entities in the cache&nbsp;(but it uses the ones in the datastore)&nbsp;whenever a condition is made using a navigation property.</div><div><br></div><div>For instance, if I have an entity called Band and another called Member with members belonging to one band (one to many relationship), the following query:</div><div><br></div><div><span ="Apple-style-span">Int32 membersCount = manager.GetQuery&lt;</span>Member&gt;<span ="Apple-style-span">().Where(e =&gt; e.Band.Name == "U2").AsEnumerable&lt;</span>Member<span ="Apple-style-span">&gt;().Count();</span></div><div><span ="Apple-style-span"><br></span></div><div><span ="Apple-style-span">membersCount will show 3</span></div><div><span ="Apple-style-span"><br></span></div><div><span ="Apple-style-span">Now add a new bass player to the band using:</span></div><div><span ="Apple-style-span"><br></span></div><div><span ="Apple-style-span">Member newBassPlayer = new&nbsp;</span>Member<span ="Apple-style-span">();</span></div><div><span ="Apple-style-span">newBassPlayer.Name = "</span><span ="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><a href="http://en.wikipedia.org/wiki/Adam_Clayt&#111;n" target="_blank">Adam Clayton</a>";</span></div><div><span ="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><span ="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; ">newBassPlayer.Band =&nbsp;</span></span><span ="Apple-style-span">manager.GetQuery&lt;</span>Band&gt;<span ="Apple-style-span">().Where(e =&gt; e.Name == "U2").First&lt;Band&gt;();</span></div><div><span ="Apple-style-span">manager.AddEntity(</span>newBassPlayer<span ="Apple-style-span">);</span></div><div><span ="Apple-style-span"><br></span></div><div><span ="Apple-style-span">For now the new player is added to the cache and is not yet stored in the database.</span></div><div><span ="Apple-style-span"><br></span></div><div><span ="Apple-style-span">Now, the member count still shows 3 and using SQL server profiler, I notice that the query is performed on the datastore instead of the cache as expected by using "</span><span ="Apple-style-span">AsEnumerable&lt;</span>Member<span ="Apple-style-span">&gt;".</span></div><div><span ="Apple-style-span"><div><span ="Apple-style-span">Int32 membersCount = manager.GetQuery&lt;</span>Member&gt;<span ="Apple-style-span">().Where(e =&gt; e.Band.Name == "U2").AsEnumerable&lt;</span>Member<span ="Apple-style-span">&gt;().Count();</span></div><div><ol><li>What is the best practise to force the query to be performed on the cache and not on the datastore?</li><li>It seems that previous versions of Devforce could specify to include records from Navigation properties (using the Include method) but I seem not able to do that anymore?</li><li>Can you point me to relevant documentation regarding the proper use of the cache or other best practices?</li></ol></div><div><span ="Apple-style-span"><br></span></div><div><span ="Apple-style-span">Thanks a lot for your support</span></div><div><span ="Apple-style-span"><br></span></div><div><span ="Apple-style-span">Frederic</span></div><div><span ="Apple-style-span"><br></span></div></span></div></span></div></div></span>]]>
   </description>
   <pubDate>Fri, 09 Sep 2011 12:51:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2954&amp;PID=11653#11653</guid>
  </item> 
 </channel>
</rss>