Hi I'd be grateful for any help or pointers on an issue I'm having.
I'm using event listeners to create a series of audit records when objects are persisted, updated or deleted. What I want to do is "tag" a set of audit records as belonging to a single unit of work, perhaps assigning a set of audit records to a batch-number or something similar. At the moment I'm creating an audit record for every modified / dirty property in an entity that is being saved, creating the audit records on a PostInsert or PostUpdate event, looping through the dirty properties. I can generate a batch-number and store this against properties in an entity using only POCO types but when I come across a property which is itself another entity I have a problem. Being a separate entity, it is persisted separately, maybe before the parent object, triggering it's own event listener before the parent object's event listener is triggered so the batch-number doesn't exist yet. All work is being done within a transaction so a transaction Id, it if existed would do the job. Does anyone have any suggestions or pointers? Cheers Rob -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
