<?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 : CacheStateManager</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : CacheStateManager</description>
  <pubDate>Thu, 14 May 2026 05:09:57 -700</pubDate>
  <lastBuildDate>Fri, 20 Aug 2010 10:57:55 -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=1521</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>CacheStateManager : I found the ultimate solution...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=8117#8117</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=861" rel="nofollow">bassvix</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 20-Aug-2010 at 10:57am<br /><br /><span id="result_" ="l&#111;ng_text"><span style="" title="">I found the ultimate solution ...<br><br></span><span title="">IEntityQuery QueryCache = (Activator.CreateInstance (typeof (EntityQuery &lt;&gt;). MakeGenericType (new Type &#091;&#093; () MyEntityType)) the IEntityQuery);<br></span><span title="">queryCache.QueryStrategy = QueryStrategy.CacheOnly;<br></span><span title="">queryCache.EntityManager = MyEntityManager;<br></span><span title="">queryCache.ExecuteAsync (). Completed + = new EventHandler &lt;EntityQueriedEventArgs&gt; (QueryCache_Completed);<br><br><br></span><span title="">QueryCache_Completed void (object sender, EntityQueriedEventArgs e)<br></span><span title="">(<br>&nbsp;&nbsp;</span><span title="">... </span><span title="">error handling ...<br><br>&nbsp;&nbsp;</span><span title="">e.Results &lt;&lt;&lt;contains only instances of the type MyEntityType cache (not search the database)</span></span>]]>
   </description>
   <pubDate>Fri, 20 Aug 2010 10:57:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=8117#8117</guid>
  </item> 
  <item>
   <title>CacheStateManager : I found a  solution, but still...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=8116#8116</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=861" rel="nofollow">bassvix</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 20-Aug-2010 at 8:05am<br /><br /><span id="result_" ="l&#111;ng_text"><span style="" title="">I found a solution, but still with an error, use. With (QueryStrategy.CacheOnly) and ran to fetch only the entities in the cache, but my second problem is that the IEntityQuery used for the search is based on a PassthruEsqlQuery.<br><br></span><span title="">TheDynamicTypeVar is a variable of type Type. </span><span title="">(Type of entity basis)<br><br></span><span title="">This does not work: (error: Must Be FetchStrategy is PassthruEsqlQuery DatasourceOnly)<br></span><span title="">new PassthruEsqlQuery (TheDynamicTypeVar, "SELECT VALUE FROM YOU AS TheEntitySetName TE). With (QueryStrategy.CacheOnly);<br><br></span><span title="">This would work (not possible in my implementation):<br><br></span><span title="">query = new EntityQuery &lt;T&gt; (InstanceOfTheDynamicType.EntityAspect.EntitySetName, MyEntityManager). With (QueryStrategy.CacheOnly);<br><br></span><span title="">It also:<br><br></span><span title="">query = new EntityQuery &lt;MyEntityType&gt; (InstanceOfTheDynamicType.EntityAspect.EntitySetName, MyEntityManager). With (QueryStrategy.CacheOnly);<br><br></span><span title="">Already this does NOT work:<br><br></span><span title="">query = new EntityQuery &lt;TheDynamicTypeVar&gt; (InstanceOfTheDynamicType.EntityAspect.EntitySetName, MyEntityManager). With (QueryStrategy.CacheOnly);<br><br></span><span title="">Using a variable (TheDynamicTypeVar) to replace the generic type T in new EntityQuery &lt;T&gt;?<br><br></span><span title="">Thank you.</span></span>]]>
   </description>
   <pubDate>Fri, 20 Aug 2010 08:05:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=8116#8116</guid>
  </item> 
  <item>
   <title>CacheStateManager : Good morning.I could not understand...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=8114#8114</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=861" rel="nofollow">bassvix</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 20-Aug-2010 at 7:04am<br /><br /><span id="result_" ="l&#111;ng_text"><span style=": rgb255, 255, 255;" title="">Good morning.<br><br></span><span style=": rgb255, 255, 255;" title="">I could not understand the solution to the problem. </span><span style=": rgb255, 255, 255;" title="">I'm using Silverlight with DevForce 6.0.4.<br><br></span><span style=": rgb255, 255, 255;" title="">I also need to restore entities that are in the cache after executing asynchronously - InvokeServerMethodAsync () for a method that returns a EntityCacheState.<br><br></span><span style=": rgb255, 255, 255;" title="">void AsyncMethod_Completed (InvokeServerMethodOperation args)<br></span><span title="">(<br>&nbsp;&nbsp;</span><span title="">... </span><span style=": rgb255, 255, 255;" title="">error handling ...<br><br>&nbsp;&nbsp;</span><span style=": rgb255, 255, 255;" title="">MyEntityManager.CacheStateManager.RestoreCacheState (args.Result the EntityCacheState);<br></span><span title="">...<br><br></span><span style=": rgb255, 255, 255;" title="">Now at this point MyEntityManager contains entities that were returned, but can not access them.<br><br></span><span style=": rgb255, 255, 255;" title="">Non-public property (MyEntityManager.CacheStateManager.GetCacheState (). EntitiesToSerialize). _items<br></span><span style=": rgb255, 255, 255;" title="">displays the entity while debugging.<br><br></span><span style=": rgb255, 255, 255;" title="">Since I am using Silverlight can not run MyEntityManager.ExecuteQuery (), and when I try MyEntityManager.ExecuteQueryAsync () the query is not executed in the cache, but in the database.<br><br></span><span style=": rgb255, 255, 255;" title="">Please help me?<br><br></span><span style="" title="">Could show in-line code?<br><br></span><span title="">Thank you.</span></span>]]>
   </description>
   <pubDate>Fri, 20 Aug 2010 07:04:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=8114#8114</guid>
  </item> 
  <item>
   <title>CacheStateManager : ok, have resolved the problem....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5657#5657</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=557" rel="nofollow">mtx_252</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 20-Oct-2009 at 12:06pm<br /><br />ok, have resolved the problem. Turns out to be PEBKAC ( Problem Exists Between Keyboard And Chair ). I had a separate entity manager which had a reference to the EntityManager from the main class. Turns out I was creating the EntityManager class and setting it's local EM to a version of the EM before I restored it from Cache so of course none of the Entities were available. I have since modified the code to make sure I pass in an updated EM anytime I restore from cache or refresh it with any new objects. <DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV>Thanks<DIV></DIV>]]>
   </description>
   <pubDate>Tue, 20 Oct 2009 12:06:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5657#5657</guid>
  </item> 
  <item>
   <title>CacheStateManager : yes i load my EntityManager will...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5656#5656</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=557" rel="nofollow">mtx_252</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 20-Oct-2009 at 11:23am<br /><br />yes i load my EntityManager will the Entities from the web service call. I want to then cache the EntityManager in Isolated Storage ( Silverlight's own storage mechanism ) so that next time I start my Silverlight app, I check the cache and restore the EntityManager from the cache. This results in a much faster startup time. However what I am finding is that I can't seem to query any of the Entities from this cached version. If I connect to the server and reload all my Entities from the server then everything works. This, however, defeats the purpose of caching the EM. Here is the code : ( The message box does appear however I can't seem to query the objects in the cache ). I have added a sample query at the very end<DIV>&nbsp;</DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>private</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> load_EntityManager()</P><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (ISManager.check_StoreFile(cENTITYMANAGER))</P><DIV>{</DIV><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>try</P></FONT></FONT><FONT size=2><P>{</P><P>context.CacheStateManager.RestoreCacheState((</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Stream</FONT></FONT><FONT size=2>)ISManager.get_ISStream(cENTITYMANAGER), </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>RestoreStrategy</FONT></FONT><FONT size=2>.Normal, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>true</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>MessageBox</FONT></FONT><FONT size=2>.Show(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Restored from Cache"</FONT></FONT><FONT size=2>);</P><P>EntityManager_Updated(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>//Connect(); </P></FONT></FONT><FONT size=2><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>catch</FONT></FONT><FONT size=2> (</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Exception</FONT></FONT><FONT size=2> ex)</P><P>{</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>//if we had an error deserializing the Entity Manager then delete the</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>//Isolated Storage object and connect</P></FONT></FONT><FONT size=2><P>ISManager.delete_StoreFile(cENTITYMANAGER);</P><P>Connect();</P><P>}</P><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>else</P></FONT></FONT><FONT size=2><P>{</P><P align=left>Connect();</P><P>}</P><P>}</P><DIV></DIV><P>&nbsp;</P><P>sample query</P><DIV></DIV><FONT size=2><P></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>///</FONT></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2> </FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>&lt;summary&gt;</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>///</FONT></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2> </P></FONT></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>///</FONT></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2> </FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>&lt;/summary&gt;</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>///</FONT></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2> </FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>&lt;param name="ci"&gt;&lt;/param&gt;</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>///</FONT></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2> </FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>&lt;returns&gt;&lt;/returns&gt;</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>public</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>String</FONT></FONT><FONT size=2> get_WOMSItemXMLData(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>String</FONT></FONT><FONT size=2> wiUID)</P><P>{</P><P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>WOMSItem_XMLData</FONT></FONT><FONT size=2> wixd = entityData.WOMSItem_XMLDatas</P><P>.Where(c =&gt; c.WOMSItem_UID.ToString() == wiUID).FirstOrDefault();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (wixd != </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>null</FONT></FONT><FONT size=2>)</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> wixd.WOMSItem_Data;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>else</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>null</FONT></FONT><FONT size=2>;</P><P>}</P></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 20 Oct 2009 11:23:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5656#5656</guid>
  </item> 
  <item>
   <title>CacheStateManager :  I&amp;#039;m a little confused about...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5655#5655</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 19-Oct-2009 at 5:42pm<br /><br />I'm a little confused about what the exact issues are at this point.&nbsp; If I understand you, you want to be able, during an application session, to save some collection of cache contents to a local EntityState disk file. At app startup (or some other time), you will load data from the disk file if there is one; otherwise, you'll load the same collection of data from the database.<br><br>You say that if you load from the database you can query the EntityManager's cache successfully; but if you load from the local EntityState file you can't? That doesn't make a lot of sense to me as is, because the state of the EntityManager cache is the state of the EntityManager cache, no matter how it got to that state; and if the entities you want are there, they're there, no matter how they got there. So there must be something else going on. How exactly does GetAll() go about asking for the data it wants?<br><br>To answer your other question: an EntityManager cache can be converted to an EntityCacheState object which is serializable. So you can populate an EntityManager's cache in a server-side method that returns an EntityCacheState object populated from that server-side EM. Then client-side you can import the EntityCacheState contents into the cache managed by the client-side EntityManager.<br><span style="font-size:10px"><br /><br />Edited by GregD - 19-Oct-2009 at 5:44pm</span>]]>
   </description>
   <pubDate>Mon, 19 Oct 2009 17:42:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5655#5655</guid>
  </item> 
  <item>
   <title>CacheStateManager : a further update.  I have tried...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5653#5653</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=557" rel="nofollow">mtx_252</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 19-Oct-2009 at 1:46pm<br /><br />a further update.<DIV>&nbsp;</DIV><DIV>I have tried to cache my entities separately but it looks like any data structures using Domain Entities are not serializable. Is there any way I can serialize my EntityManager or Entity Data without waiting for my client to connect to the BOS and retrieving all the entities each time</DIV><DIV>&nbsp;</DIV><DIV>Thx</DIV>]]>
   </description>
   <pubDate>Mon, 19 Oct 2009 13:46:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5653#5653</guid>
  </item> 
  <item>
   <title>CacheStateManager : I may have spoken too quickly...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5651#5651</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=557" rel="nofollow">mtx_252</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 19-Oct-2009 at 1:18pm<br /><br />I may have spoken too quickly on this matter. Here is what I am trying to accomplish<DIV>&nbsp;</DIV><DIV>1) Connect to my data source and retrieve all Entities. This should only happen if no cached EntityManager</DIV><DIV>2) Next time I connect I restore my EntityManager by retrieving cached version from IsolatedStorage ( this is Silverlight application )</DIV><DIV>3) I now want to query my Entities using the cached version.</DIV><DIV>4) I originally thought the problem was from using ExecuteQueryAsync and switched to ExecuteQuery. However this only works if I have already retrieved all my Entities and not with the cached version. </DIV><DIV>&nbsp;</DIV><DIV>Is this a problem with Silverlight or am I missing something here?</DIV>]]>
   </description>
   <pubDate>Mon, 19 Oct 2009 13:18:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5651#5651</guid>
  </item> 
  <item>
   <title>CacheStateManager : Glad you found a solution, mtx,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5638#5638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 16-Oct-2009 at 11:48am<br /><br />Glad you found a solution, mtx, and thanks also for posting the resolution!]]>
   </description>
   <pubDate>Fri, 16 Oct 2009 11:48:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5638#5638</guid>
  </item> 
  <item>
   <title>CacheStateManager : I have resolved the problem. Turns...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5633#5633</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=557" rel="nofollow">mtx_252</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 15-Oct-2009 at 1:40pm<br /><br />I have resolved the problem. Turns out using ExecuteQueryAsync for both the initial query and against the restored cache does not work. I switched to using ExecuteQuery for the restored cached instance and now all objects are being returned]]>
   </description>
   <pubDate>Thu, 15 Oct 2009 13:40:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5633#5633</guid>
  </item> 
  <item>
   <title>CacheStateManager : I want to be able to save and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5632#5632</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=557" rel="nofollow">mtx_252</a><br /><strong>Subject:</strong> 1521<br /><strong>Posted:</strong> 15-Oct-2009 at 12:34pm<br /><br />I want to be able to save and restore the EntityManager cache using Isolated Storage in Silverlight. I seem to be able to save and restore the cache but when I query any of the entities I don't get any items returned. Here is the code<DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>private</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> load_EntityManager()</P><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (ISManager.check_StoreFile(cENTITYMANAGER))</P><P>{</P><P>context.CacheStateManager.RestoreCacheState((</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Stream</FONT></FONT><FONT size=2>)ISManager.get_ISStream(cENTITYMANAGER), </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>RestoreStrategy</FONT></FONT><FONT size=2>.Normal, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>true</FONT></FONT><FONT size=2>);</P><P>pHDBOObj.ChannelItem_States = </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>ChannelItem_State</FONT></FONT><FONT size=2>.GetAll(context, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>MessageBox</FONT></FONT><FONT size=2>.Show(pHDBOObj.ChannelItem_States.Count.ToString());</P><P>}</P><DIV></DIV>the EntityManager is restored but the ChannelItem_States list has 0 elements whereas when I am connected and execute the <FONT color=#2b91af>ChannelItem_State</FONT><FONT size=2>.GetAll(context, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>) query it has the correct 5 items. I save the Cache after all queries are performed.</FONT></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 15 Oct 2009 12:34:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1521&amp;PID=5632#5632</guid>
  </item> 
 </channel>
</rss>