Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> LLBLGen Pro v2.6 Self-Servicing Auditing Question
 

Pages: 1
LLBLGen Pro Runtime Framework
LLBLGen Pro v2.6 Self-Servicing Auditing Question
Page:1/1 

  Print all messages in this thread  
Poster Message
mshe
User



Location:
Markham, Canada
Joined on:
02-Feb-2006 23:31:34
Posted:
167 posts
# 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?
  Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8088 posts
# 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'ing (articles and code snippets) | linkedin | twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.