TManagerEvents Class
Provides entity lifecycle and SQL execution events for an Aurelius mapping model.
Remarks
TManagerEvents is exposed through TMappingExplorer.Events. Subscribe handlers to its event properties before creating any TObjectManager backed by that explorer. All managers sharing the same explorer share the same event subscriptions.
Subscribing and unsubscribing handlers is not thread-safe; complete all registrations before the explorer is accessed concurrently from multiple threads.
Syntax
Unit: Aurelius.Events.Manager
TManagerEvents = class(TObject);
Properties
| Name | Description |
|---|---|
| OnCollectionItemAdded | Event fired when an entity is added to an association collection managed by this model. |
| OnCollectionItemRemoved | Event fired when an entity is removed from an association collection managed by this model. |
| OnDeleted | Event fired after an entity has been deleted from the database. |
| OnDeleting | Event fired before an entity is deleted from the database. |
| OnInserted | Event fired after an entity has been inserted into the database. |
| OnInserting | Event fired before an entity is inserted into the database. |
| OnSQLExecuting | Event fired before any SQL statement is executed, allowing inspection or modification of the statement. |
| OnUpdated | Event fired after an entity has been updated in the database. |
| OnUpdating | Event fired before an entity is updated in the database. |