Hi
I have a general Auditor class that I use via DI to audit all entities in my application. The problem is when I instantiate an AuditInfo object inside the AuditEntityFieldSet routine and try to set it's properties, it re-fires the AuditEntityFieldSet for the AuditInfo object.
Dim auditInfo As AuditInfoEntity = New AuditInfoEntity()
auditInfo.AffectedEntityName = entity.LLBLGenProEntityName
auditInfo.ActionDateTime = DateTime.Now
auditInfo.AuditActionTypeId = AuditType.EntityFieldSet
auditInfo.UserId = 1
auditInfo.ActionData = actionData
I realise this is because my AuditInfo object is also set to be audited since it has received the AuditorToUse just like all my other entities.
What is the best way to set this entity not to be audited?