Click or drag to resize

AuditorBaseAuditLoadOfEntity Method

Audits the successful load of an entity from the database

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax
public virtual void AuditLoadOfEntity(
	IEntityCore entity
)

Parameters

entity
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCore
The entity which was loaded. All data of the entity which was loaded is inside the entity.

Implements

IAuditorAuditLoadOfEntity(IEntityCore)
Remarks
Be careful when using this auditing routine, because 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