Syntax
| C# |
|---|
[SerializableAttribute] public abstract class ActiveRecordHooksBase |
The type exposes the following members.
Protected Constructors
| Name | Description | |
|---|---|---|
| ActiveRecordHooksBaseActiveRecordHooksBaseNew |
Public Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
Protected Methods
| Name | Description | |
|---|---|---|
| BeforeDelete |
Hook to perform additional tasks
before removing the object instance representation
from the database.
| |
| BeforeLoad |
Hook to transform the read data
from the database before populating
the object instance
| |
| BeforeSave |
Hook to change the object state
before saving it.
| |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| FindDirty |
Called from Flush(). The return value determines whether the entity is updated
| |
| IsUnsaved |
Called when a transient entity is passed to SaveOrUpdate.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnDelete |
Lifecycle method invoked during Delete of the entity
| |
| OnFlushDirty | ||
| OnLoad |
Lifecycle method invoked during Load of the entity
| |
| OnSave |
Lifecycle method invoked during Save of the entity
| |
| OnUpdate |
Lifecycle method invoked during Update of the entity
| |
| PostFlush |
Called after a flush that actually ends in execution of the SQL statements required to
synchronize in-memory state with the database.
| |
| PreFlush |
Called before a flush
|
See Also
Castle.ActiveRecord Namespace