Audit Trail

Mar 23, 2011 at 3:50 PM

Hi everyone.

I am going to implement into this project audit trail using following article:

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 11:42 PM

DataContext implements the IObjectContextAdapter specifically to gain access to ObjectContext.