I am trying to decide if I can make my existing audit strategy work with LLBL auditors. I am currently using my home rolled, self-servicing ORM, but I am moving to LLBL v2.5's adapter model.
This is my existing strategy:
1. My entities have a LastModified (datetime) and LastModifiedUserID (int) column
2. In BLL before a dirty entity is saved, I tag the last modified fields.
3. In the DB triggers save a copy into the audit tables database. ex. AuditDatabase.dbo.CustomerAudit which has the same columns as ProductionDatabase.dbo.Customer with the addition of AuditDate and AuditType.
I have setup a CustomerAuditor class, but it seems all the methods are called after the data operation. Is there anyway to set the LastModified fields before the save occurs with an auditor?
Thanks,
Jamison