I'm looking for ideas on how to implement audit trails for my objects in C#, for the current project,basically I need to:
- Store the old values and new values of a given object.
- Record creation of new objects.
- Deletion of old object.
Is there any generic way of doing this,like using C# Generics,so that I don't have to write code for events of the base object like on creation,on deletion etc.(ORM objects).The thing is that if there was a way to inject audit trail if one is using a .Anybody have any experiences or any methods they follow.Any way to do this in a Aspect-oriented (AOP) mannner.
Please share your ideas etc.