<?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 : EntityServerSaveInterceptor</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : EntityServerSaveInterceptor</description>
  <pubDate>Thu, 16 Apr 2026 09:06:31 -700</pubDate>
  <lastBuildDate>Wed, 23 Nov 2011 19:45:46 -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=3095</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>EntityServerSaveInterceptor : Hi Walid  Thank you for the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3095&amp;PID=12112#12112</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=791" rel="nofollow">Vincent</a><br /><strong>Subject:</strong> 3095<br /><strong>Posted:</strong> 23-Nov-2011 at 7:45pm<br /><br />Hi Walid<DIV>&nbsp;</DIV><DIV>Thank you for the help. I have implemented it and it has worked.</DIV><DIV>&nbsp;</DIV><DIV>Best Regards,</DIV><DIV>Vincent</DIV>]]>
   </description>
   <pubDate>Wed, 23 Nov 2011 19:45:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3095&amp;PID=12112#12112</guid>
  </item> 
  <item>
   <title>EntityServerSaveInterceptor :   Hello Vincent,Here is a litle...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3095&amp;PID=12065#12065</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=998" rel="nofollow">Walid</a><br /><strong>Subject:</strong> 3095<br /><strong>Posted:</strong> 15-Nov-2011 at 8:54am<br /><br /><pre style=": white; color: black; font-family: C&#111;nsolas;">Hello Vincent,</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">Here is a litle example :</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">class</span>&nbsp;<span style="color: rgb43, 145, 175;">MyEntityServerSaveManager</span>&nbsp;:&nbsp;<span style="color: rgb43, 145, 175;">EntityServerSaveInterceptor</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">protected</span>&nbsp;<span style="color: blue;">override</span>&nbsp;<span style="color: blue;">bool</span>&nbsp;ExecuteSave()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">foreach</span>&nbsp;(<span style="color: blue;">var</span>&nbsp;entity&nbsp;<span style="color: blue;">in</span>&nbsp;EntityManager.FindEntities(<span style="color: rgb43, 145, 175;">EntityState</span>.Modified).OfType&lt;<span style="color: rgb43, 145, 175;">MyEntity</span>&gt;())&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{</pre><pre style=": white; color: black; font-family: C&#111;nsolas;"><pre style=": white; color: black; font-family: C&#111;nsolas;">                <span style="color: blue;">var</span> oldValue = (<span style="color: blue;">string</span>)<span style="color: rgb43, 145, 175;">EntityAspect</span>.Wrap(entity).GetValue(<span style="color: rgb163, 21, 21;">"MyStringProperty"</span>, <span style="color: rgb43, 145, 175;">EntityVersion</span>.Original);<pre style=": white; color: black; font-family: C&#111;nsolas;">                <span style="color: blue;">var</span> newValue = entity.MyStringProperty;</pre></pre></pre><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">if</span>&nbsp;(oldValue != newValue)</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">                {</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">                //...                }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">return</span>&nbsp;<span style="color: blue;">base</span>.ExecuteSave();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;}</pre>]]>
   </description>
   <pubDate>Tue, 15 Nov 2011 08:54:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3095&amp;PID=12065#12065</guid>
  </item> 
  <item>
   <title>EntityServerSaveInterceptor :  Hi Everybody  Can anyone give...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3095&amp;PID=12062#12062</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=791" rel="nofollow">Vincent</a><br /><strong>Subject:</strong> 3095<br /><strong>Posted:</strong> 15-Nov-2011 at 2:12am<br /><br /><DIV></DIV><DIV></DIV>Hi Everybody<DIV>&nbsp;</DIV><DIV>Can anyone give me a sample code on how to get&nbsp;both old and new&nbsp;property values&nbsp;of an entity that has been modified by implementing EntityServerSaveInterceptor on the server side?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Best Regards,</DIV><DIV>Vincent</DIV>]]>
   </description>
   <pubDate>Tue, 15 Nov 2011 02:12:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3095&amp;PID=12062#12062</guid>
  </item> 
 </channel>
</rss>