Syntax
| C# |
|---|
[SerializableAttribute] public abstract class ActiveRecordBase |
The type exposes the following methods.
Public Methods
| Name | Description | |
|---|---|---|
| Asc |
Ascending Order
| |
| Create | Overloaded. | |
| CreateAndFlush | Overloaded. | |
| Delete | Overloaded. | |
| DeleteAndFlush | Overloaded. | |
| Desc |
Descending Order
| |
| Equals | (Inherited from Object.) | |
| ExecuteQuery |
Executes the query.
| |
| 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.) | |
| Refresh | Overloaded. | |
| Save | Overloaded. | |
| SaveAndFlush | Overloaded. | |
| SaveCopy | Overloaded. | |
| SaveCopyAndFlush | Overloaded. | |
| ToString |
Return the type of the object with its PK value.
Useful for logging/debugging
(Overrides Object..::ToString()().) | |
| Update | Overloaded. | |
| UpdateAndFlush | Overloaded. |
Protected Methods
| Name | Description | |
|---|---|---|
| BeforeDelete |
Hook to perform additional tasks
before removing the object instance representation
from the database.
(Inherited from ActiveRecordHooksBase.) | |
| BeforeLoad |
Hook to transform the read data
from the database before populating
the object instance
(Inherited from ActiveRecordHooksBase.) | |
| BeforeSave |
Hook to change the object state
before saving it.
(Inherited from ActiveRecordHooksBase.) | |
| Count | Overloaded. | |
| Create | Overloaded. | |
| CreateAndFlush | Overloaded. | |
| Delete | Overloaded. | |
| DeleteAll | Overloaded. | |
| DeleteAndFlush | Overloaded. | |
| EnumerateQuery |
Enumerates the query
Note: only use if you expect most of the values to exist on the second level cache.
| |
| Execute | Overloaded. | |
| Exists | Overloaded. | |
| 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.) | |
| FindAll | Overloaded. | |
| FindAllByProperty | Overloaded. | |
| FindByPrimaryKey | Overloaded. | |
| FindDirty |
Called from Flush(). The return value determines whether the entity is updated
(Inherited from ActiveRecordHooksBase.) | |
| FindFirst | Overloaded. | |
| FindOne | Overloaded. | |
| IsUnsaved |
Called when a transient entity is passed to SaveOrUpdate.
(Inherited from ActiveRecordHooksBase.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnDelete |
Lifecycle method invoked during Delete of the entity
(Inherited from ActiveRecordHooksBase.) | |
| OnFlushDirty | (Inherited from ActiveRecordHooksBase.) | |
| OnLoad |
Lifecycle method invoked during Load of the entity
(Inherited from ActiveRecordHooksBase.) | |
| OnSave |
Lifecycle method invoked during Save of the entity
(Inherited from ActiveRecordHooksBase.) | |
| OnUpdate |
Lifecycle method invoked during Update of the entity
(Inherited from ActiveRecordHooksBase.) | |
| PostFlush |
Called after a flush that actually ends in execution of the SQL statements required to
synchronize in-memory state with the database.
(Inherited from ActiveRecordHooksBase.) | |
| PreFlush |
Called before a flush
(Inherited from ActiveRecordHooksBase.) | |
| Refresh | Overloaded. | |
| Replicate |
From NHibernate documentation:
Persist all reachable transient objects, reusing the current identifier
values. Note that this will not trigger the Interceptor of the Session.
| |
| Save | Overloaded. | |
| SaveAndFlush | Overloaded. | |
| SaveCopy | Overloaded. | |
| SaveCopyAndFlush | Overloaded. | |
| SlicedFindAll | Overloaded. | |
| Update | Overloaded. | |
| UpdateAndFlush | Overloaded. |
See Also
Castle.ActiveRecord Namespace