LLBLGen Pro v2.6 Self-Servicing Auditing Question

Posts   
 
    
mshe
User
Posts: 167
Joined: 02-Feb-2006
# Posted on: 14-Jul-2009 18:05:05   

Hi all,

I understand that auditing is typically used to log auditing data about an entity to a auditing table.

However, I have this situation which has two entities:

Entity A Entity A_Auditing_Info

When Entity A changes, I like to log a record in Entity A_Auditing_Info.

However, at the same time, I like to update Entity A with a bit of information (link it to the current auditing record).

This works - sort of; however, when I update the original entity, the auditing framework fires twice.

Is there a way around this?

Also, is auditing fired asynchronously or synchronously?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 15-Jul-2009 05:04:17   

mshe wrote:

Hi all,However, at the same time, I like to update Entity A with a bit of information (link it to the current auditing record).

As it's a link, it also have the link at the other side (A_Auditing_Info). So, it's better if you simple modified the info on the A_Auditing_Info. Am I clear? When you update EntityA, you catch the Id, and then use it to log on A_Auditing_Info.

mshe wrote:

This works - sort of; however, when I update the original entity, the auditing framework fires twice.

Please elaborate more on this. Please attach the .cs file where your auditor is located.

David Elizondo | LLBLGen Support Team