Chapter 12. Auditing

Building a solid audit trail is critical in many of today's enterprise-level applications, not to mention it can get you out of a heap of trouble when people start asking questions about missing data. Wouldn't it be great if you could produce a nice, fancy report that indicates whenever anyone adds, updates, or deletes a record? Not only is an audit trail good for covering your butt, but an increasing number of regulations mandate that system activity be traceable.

Audit trails are another one of those features that never seem to make it into the first round of requirements. "Oh, we'll get to that later after we figure out what we want" is a common refrain. Well, it's much easier to take care of auditing up front, rather than after the fact; and with the pattern that has been defined in this book already, it is easy to slip in an audit trail without refactoring the entire project.

Get ASP.NET 3.5 Enterprise Application Development with Visual Studio® 2008: Problem - Design - Solution now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.