Click or drag to resize

AuditorBaseAuditDeleteOfEntity Method

Audits the successful delete of an entity from the database

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 AuditDeleteOfEntity(
	IEntityCore entity
)

Parameters

entity
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCore
The entity which was deleted.

Implements

IAuditorAuditDeleteOfEntity(IEntityCore)
Remarks
As the entity passed in was deleted succesfully, reading values from the passed in entity is only possible in this routine. After this call, the state of the entity will be reset to Deleted again and reading the fields will result in an exception. It's also recommended not to reference the passed in entity in any audit entity you might want to persist as the entity doesn't exist anymore in the database.
See Also