Audits the successful delete of an entity from the database

Namespace: MonoSoftware.LLBLGen
Assembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public override void AuditDeleteOfEntity(
	IEntityCore entity
)
Visual Basic
Public Overrides Sub AuditDeleteOfEntity ( 
	entity As IEntityCore
)
Visual C++
public:
virtual void AuditDeleteOfEntity(
	IEntityCore^ entity
) override
F#
abstract AuditDeleteOfEntity : 
        entity : IEntityCore -> unit 
override AuditDeleteOfEntity : 
        entity : IEntityCore -> unit 

Parameters

entity
Type: IEntityCore
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