Click or drag to resize

LLBLGenProDataSourceBaseEntityDeleted Event

Event which is raised when LivePersistence is set to true and an entity was deleted successfully. The deleted entity is part of the event args.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses.Web (in SD.LLBLGen.Pro.ORMSupportClasses.Web.dll) Version: 5.7.0.0 (5.7.0)
Syntax
public event EventHandler<DataSourceActionEventArgs> EntityDeleted

Value

Type: SystemEventHandlerDataSourceActionEventArgs
Remarks
Be aware that the entity in the event args has already been deleted and therefore reading its properties directly will cause an exception. If you need to obtain field values, please either set the 'State' property of the Fields object to Fetched, or read the field's CurrentValue property directly.
See Also