Click or drag to resize

AuditorBaseAuditEntityFieldGet Method

Audits when an entity field's value is succesfully obtained from the passed in entity

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public virtual void AuditEntityFieldGet(
	IEntityCore entity,
	int fieldIndex
)

Parameters

entity
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCore
The entity a field's value was obtained.
fieldIndex
Type: SystemInt32
Index of the field which value was obtained.

Implements

IAuditorAuditEntityFieldGet(IEntityCore, Int32)
Remarks
Be careful when using this auditing routine, because a lot of calls will be made to this routine when data is for example shown in a grid. Another thing to realize is that the audit information is stored inside the auditor which is inside an entity which might not be persisted/deleted later on. This means that if you use the audit data to produce entities which are then returned by GetAuditEntitiesToSave are never persisted if the entity this auditor is the auditor of is never persisted/deleted. In that situation, to get reliable journalling, use an external service to log the audit data.
See Also