<?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 : Debugging the EntityManager Cache</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Debugging the EntityManager Cache</description>
  <pubDate>Mon, 13 Apr 2026 06:26:14 -700</pubDate>
  <lastBuildDate>Thu, 06 Jan 2011 14:53:14 -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=2421</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>Debugging the EntityManager Cache :  c63205;When flag sets to true,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2421&amp;PID=9581#9581</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2421<br /><strong>Posted:</strong> 06-Jan-2011 at 2:53pm<br /><br />c63205;<div><br></div><div>When flag sets to true, the EntityCacheState is written into a binary xml format.</div><div><br></div><div>When flag sets to false, the EntityCacheState is written into a text xml format.&nbsp;</div><div><br></div><div>I have tested the following code and made sure that the output was correct for each option.</div><div><br></div><div><div>var mgr = new NorthwindIBEntityManager();</div><div>var customers = mgr.Customers.FirstOrNullEntity();</div><div>mgr.CacheStateManager.SaveCacheState(@"C:\temp\EntityCacheStateXml.xml", false);</div><div>mgr.CacheStateManager.SaveCacheState(@"C:\temp\EntityCacheStateBin.bin", true);</div></div><span style="font-size:10px"><br /><br />Edited by DenisK - 06-Jan-2011 at 4:01pm</span>]]>
   </description>
   <pubDate>Thu, 06 Jan 2011 14:53:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2421&amp;PID=9581#9581</guid>
  </item> 
  <item>
   <title>Debugging the EntityManager Cache : OK, perhaps I wasn&amp;#039;t using...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2421&amp;PID=9578#9578</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1037" rel="nofollow">c63205</a><br /><strong>Subject:</strong> 2421<br /><strong>Posted:</strong> 06-Jan-2011 at 2:27pm<br /><br />OK, perhaps I wasn't using the correct encoding when reading from the stream. &nbsp;I had entered 'false' for the binary parameter but the data wasn't readable. &nbsp;Is the text structured at all (xml, etc?) &nbsp;<div><br></div><div>It might be cool for 'someone' to create a little utility to traverse the EntityManagers entity graph and visualize the contents. &nbsp;Perhaps a visual studio debugging visualizer widget. &nbsp;Obviously not a big priority, but would be cool and perhaps useful.&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 06 Jan 2011 14:27:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2421&amp;PID=9578#9578</guid>
  </item> 
  <item>
   <title>Debugging the EntityManager Cache : Hi c63205;As of 6.0.6, the SaveCacheState...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2421&amp;PID=9577#9577</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2421<br /><strong>Posted:</strong> 06-Jan-2011 at 1:09pm<br /><br />Hi c63205;<div><br></div><div>As of 6.0.6, the SaveCacheState method now has an option to save in binary or text format.</div>]]>
   </description>
   <pubDate>Thu, 06 Jan 2011 13:09:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2421&amp;PID=9577#9577</guid>
  </item> 
  <item>
   <title>Debugging the EntityManager Cache : I&amp;#039;m getting a FKconstrainterror...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2421&amp;PID=9568#9568</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1037" rel="nofollow">c63205</a><br /><strong>Subject:</strong> 2421<br /><strong>Posted:</strong> 05-Jan-2011 at 4:10pm<br /><br />I'm getting a FK&nbsp;constraint&nbsp;error on saving my entitymanager's data to the DB. &nbsp;Is there a way to dynamically just purge/serialize the entities that are in the Cache to xml or some readable format. &nbsp;I tried using the savecachestate() but its not readable (as expected). &nbsp;This would purely be for development and debugging.<div><br></div><div>Perhaps someone has a tool or utility for this?</div><div><br></div><div>Thanks,</div>]]>
   </description>
   <pubDate>Wed, 05 Jan 2011 16:10:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2421&amp;PID=9568#9568</guid>
  </item> 
 </channel>
</rss>