<?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 : Updating Cache from Another Table</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Updating Cache from Another Table</description>
  <pubDate>Sat, 11 Apr 2026 10:55:57 -700</pubDate>
  <lastBuildDate>Wed, 09 Jun 2010 18:34:31 -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=1868</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>Updating Cache from Another Table : There is a RefetchEntitiesAsync()...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1868&amp;PID=7238#7238</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> 1868<br /><strong>Posted:</strong> 09-Jun-2010 at 6:34pm<br /><br />There is a RefetchEntitiesAsync() method on the EntityManager that takes an EntityKeyList, and there's quite a bit of metadata available on any Entity, including what the EntityKey is, so very likely you can abstract it.]]>
   </description>
   <pubDate>Wed, 09 Jun 2010 18:34:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1868&amp;PID=7238#7238</guid>
  </item> 
  <item>
   <title>Updating Cache from Another Table : Well sort of, I guess was trying...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1868&amp;PID=7188#7188</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=804" rel="nofollow">jmarbutt</a><br /><strong>Subject:</strong> 1868<br /><strong>Posted:</strong> 07-Jun-2010 at 5:02pm<br /><br />Well sort of, I guess was trying to figure out the easiest way to tell the other table to update the entity. That way when I add tables down the road it will update with out a special case.<br /><br />The only way I see it is to do something like this:<br /><br />switch TableName<br /><br />case "People"<br />var query = from p in entities.people where p.id = id<br />select p;<br /><br />case "Orders"<br />var query = from p in entities.orders where p.id = id<br />select p;<br />....<br />....<br />end switch<br /><br /><br />I was looking for a better way if that is possible]]>
   </description>
   <pubDate>Mon, 07 Jun 2010 17:02:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1868&amp;PID=7188#7188</guid>
  </item> 
  <item>
   <title>Updating Cache from Another Table : I&amp;#039;m not sure I understand...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1868&amp;PID=7187#7187</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> 1868<br /><strong>Posted:</strong> 07-Jun-2010 at 4:29pm<br /><br />I'm not sure I understand what the problem is you're trying to solve. If you have an Audit entity, and you retrieve instances of it using the query you propose, then you'll have all the information you need, won't you? Your collection of Audit entities is the record of all entities that need to be refreshed in cache (provided they're there to begin with).<br>]]>
   </description>
   <pubDate>Mon, 07 Jun 2010 16:29:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1868&amp;PID=7187#7187</guid>
  </item> 
  <item>
   <title>Updating Cache from Another Table : We have a large application with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1868&amp;PID=7178#7178</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=804" rel="nofollow">jmarbutt</a><br /><strong>Subject:</strong> 1868<br /><strong>Posted:</strong> 07-Jun-2010 at 1:02pm<br /><br />We have a large application with about 300 tables, and one audit table. The audit table contains the Id in the other tables as well as an UpdateDate. <br /><br />I would like to be able to make one call to the AuditTable like:<br /><br />var query = from a in MyEntities.AuditTable where UpdateDate &gt; LastUpdate<br /><br />And then be able to figure out what other entities need to be updated from that result set. What is the easiest way to do this? I don't want to have write special cases for each of these tables so what is the ideal way?<span style="font-size:10px"><br /><br />Edited by jmarbutt - 07-Jun-2010 at 1:41pm</span>]]>
   </description>
   <pubDate>Mon, 07 Jun 2010 13:02:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1868&amp;PID=7178#7178</guid>
  </item> 
 </channel>
</rss>