Audit Trail

Mar 23, 2011 at 2:50 PM

Hi everyone.

I am going to implement into this project audit trail using following article: http://www.codeproject.com/KB/database/ImplAudingTrailUsingEFP1.aspx

However, I can't figure out how to do it, because it doesn't have ObjectContext class where I can write following:

    partial void OnContextCreated()
    {
        this.SavingChanges += new EventHandler(AdventureWorksEntities_SavingChanges);
    }

Any ideas?
Jun 15, 2011 at 10:42 PM

DataContext implements the IObjectContextAdapter specifically to gain access to ObjectContext.