<?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 : Where are the EntityManager&#039;s &quot;EntitySet&quot; Methods?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Where are the EntityManager&#039;s &quot;EntitySet&quot; Methods?</description>
  <pubDate>Thu, 23 Apr 2026 11:59:37 -700</pubDate>
  <lastBuildDate>Tue, 23 Dec 2008 14:32:34 -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=1032</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>Where are the EntityManager&#039;s &quot;EntitySet&quot; Methods? : Sorry that we haven&amp;#039;t updated...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1032&amp;PID=3732#3732</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1032<br /><strong>Posted:</strong> 23-Dec-2008 at 2:32pm<br /><br />Sorry that we haven't updated this chapter yet.&nbsp; The "EntitySet" feature in DevForce Classic is still available in DevForce EF, via the EntityManager.CacheStateManager property.&nbsp; The reference help does have some sample code under the CacheStateManager class on how to use it: <DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>private void SampleEntityCacheUsage() { <BR>&nbsp;<BR>&nbsp;&nbsp; DomainModelEntityManager mgr = new DomainModelEntityManager(); <BR>&nbsp;<BR>&nbsp;&nbsp; // Cache all employees. <BR>&nbsp;&nbsp; mgr.ExecuteQuery&lt;Employee&gt;(); <BR>&nbsp;<BR>&nbsp;&nbsp; // Save the cache to local storage. <BR>&nbsp;&nbsp; <strong>mgr.CacheStateManager.SaveCacheState(@"c:\temp\entitycache.bin"); <BR></strong>&nbsp;<BR>&nbsp;&nbsp; // Occasionally-connected users will normally connect, cache all data required, <BR>&nbsp;&nbsp; // then disconnect and work from local cache and/or locally saved cache until they can reconnect. <BR>&nbsp;&nbsp; // In this example, we'll mimic a disconnected login for this user by clearing all cached data <BR>&nbsp;&nbsp; // and then re-loading the cache from local storage. <BR>&nbsp;&nbsp; mgr.Disconnect(); <BR>&nbsp;&nbsp; mgr.Clear(); <BR>&nbsp;<BR><strong>&nbsp;&nbsp; mgr.CacheStateManager.RestoreCacheState(@"c:\temp\entitycache.bin"); <BR></strong>&nbsp;<BR>&nbsp;&nbsp; // Let's reconnect and get more data now. <BR>&nbsp;&nbsp; mgr.Connect(); <BR>&nbsp;&nbsp; mgr.ExecuteQuery&lt;Customer&gt;(); <BR>}&nbsp;<BR>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 23 Dec 2008 14:32:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1032&amp;PID=3732#3732</guid>
  </item> 
  <item>
   <title>Where are the EntityManager&#039;s &quot;EntitySet&quot; Methods? : Chapter 10 of the IdeaBlade DevForce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1032&amp;PID=3729#3729</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=299" rel="nofollow">smiller</a><br /><strong>Subject:</strong> 1032<br /><strong>Posted:</strong> 23-Dec-2008 at 12:25pm<br /><br />Chapter 10 of the IdeaBlade DevForce EF Developer's Guide states that the DevForce EntityManager contains "EntitySet" methods to shuttle business object data between the EntityManager's in-memory entity cache and local storage, namely "SaveEntitySet" and "RestoreEntitySet".&nbsp; My EntityManager does not have these methods. <DIV>&nbsp;</DIV><DIV>Poking around I found that the IdeaBlade.Persistence.PersistenceManager contains these methods.&nbsp; I have an entity that I want to serialize to disk so I thought I'd do something like the following:</DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P><FONT face="Courier New, Courier, mono">var</FONT></FONT></FONT><FONT face="Courier New, Courier, mono"><FONT size=2> persistenceManager = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> IdeaBlade.Persistence.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>PersistenceManager</FONT></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">();</FONT></P><DIV><FONT face="Courier New, Courier, mono">persistenceManager.AddEntity(myEntity);</FONT></DIV><P><FONT face="Courier New, Courier, mono">persistenceManager.SaveEntitySet(filename);</FONT></P><DIV></DIV><P>But this code doesn't compile because my entity is not of type IdeaBlade.Persistence.Entity and it cannot be cast to that type.&nbsp; Is there an example somewhere&nbsp;that shows how to serialize myEntity to disk?</P><P></FONT>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by smiller - 23-Dec-2008 at 2:03pm</span>]]>
   </description>
   <pubDate>Tue, 23 Dec 2008 12:25:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1032&amp;PID=3729#3729</guid>
  </item> 
 </channel>
</rss>