<?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 : Recommendations for Audit Trial</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Recommendations for Audit Trial</description>
  <pubDate>Mon, 27 Apr 2026 18:37:27 -700</pubDate>
  <lastBuildDate>Mon, 22 Sep 2008 15:24:23 -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=944</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>Recommendations for Audit Trial : There are many ways to do auditing,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=944&amp;PID=3424#3424</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> 944<br /><strong>Posted:</strong> 22-Sep-2008 at 3:24pm<br /><br /><DIV>There are many ways to do auditing, and people have many different auditing needs. Most of the topic is not at all specific to DevForce.&nbsp; However, it is often advantageous to create audit records server-side, and for that the IEntityServerSaving and IEntityServerSaved interfaces are your keys to a very useful DevForce facility.&#091;1&#093; </DIV><DIV>&nbsp;</DIV><DIV>If you provide a server-side class that implements IEntityServerSaving, it will get called whenever entities are submitted for a save. An OnSaving() method mandated by the interface gets an EntityManager that contains the entities being saved.&nbsp; You could create audit records for any or all of them and&nbsp;add those audit records to the EntityManager that will be submitted for saving.&nbsp; The base records and audit records would all be part of the same transaction.</DIV><DIV>&nbsp;</DIV><DIV>You would probably want to remove the audit records from the set of records returned to the client, and you could do that in the OnSaved() method of your IEntityServerSaved implementation. It gets an EntityManager containing the records that were saved.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Greg Dunn</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>-------------------------</DIV><DIV>&#091;1&#093; There are also client-side Saving and Saved events that could be handled if for some reason you wanted to create audit records client-side.</DIV>]]>
   </description>
   <pubDate>Mon, 22 Sep 2008 15:24:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=944&amp;PID=3424#3424</guid>
  </item> 
  <item>
   <title>Recommendations for Audit Trial : I was reading discussion topic...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=944&amp;PID=3412#3412</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=370" rel="nofollow">sebma</a><br /><strong>Subject:</strong> 944<br /><strong>Posted:</strong> 22-Sep-2008 at 2:06am<br /><br />I was reading discussion topic on object cloning (http://www.ideablade.com/forum/forum_posts.asp?TID=874), and would like to know a good recommendation on implementing Audit Trial for DevForce EF objects. The DevForce EF Developers Guide is kind of brief. Should I just implement a 1-to-Many for each table that need audit trial, as in a table has a 1-to-Many relationship to another table which stores the historical trial. Is there any methods I need to implement or override such that audit trial is created when object is changed or deleted?<br /><br />Thanks all in advance.<br />-Sebastian<br /><br />]]>
   </description>
   <pubDate>Mon, 22 Sep 2008 02:06:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=944&amp;PID=3412#3412</guid>
  </item> 
 </channel>
</rss>