Click or drag to resize

IAuditorAuditDeleteOfEntity 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.6.0.0 (5.6.19.0117)
Syntax
void AuditDeleteOfEntity(
	IEntityCore entity
)

Parameters

entity
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCore
The entity which was deleted.
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