Syntax
| C# |
|---|
[SerializableAttribute] public abstract class ActiveRecordBase<T> |
Type Parameters
- T
The type exposes the following members.
Protected Constructors
| Name | Description | |
|---|---|---|
| ActiveRecordBase<(Of <T>)>ActiveRecordBase<(Of <T>)>New |
Public Methods
| Name | Description | |
|---|---|---|
| CreateAndFlush |
Creates (Saves) a new instance to the database.
(Inherited from ActiveRecordBase.) | |
| DeleteAll | Overloaded. | |
| DeleteAndFlush |
Deletes the instance from the database.
(Inherited from ActiveRecordBase.) | |
| Equals | (Inherited from Object.) | |
| Exists | Overloaded. | |
| Find |
Finds an object instance by an unique ID
| |
| FindAll | Overloaded. | |
| FindAllByProperty | Overloaded. | |
| FindFirst | Overloaded. | |
| FindOne | Overloaded. | |
| 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.) | |
| SaveAndFlush |
Saves the instance information to the database.
May Create or Update the instance depending
on whether it has a valid ID.
(Inherited from ActiveRecordBase.) | |
| SaveCopyAndFlush |
Saves a copy of the instance information to the database.
May Create or Update the instance depending
on whether it has a valid ID.
(Inherited from ActiveRecordBase.) | |
| SlicedFindAll | Overloaded. | |
| ToString |
Return the type of the object with its PK value.
Useful for logging/debugging
(Inherited from ActiveRecordBase.) | |
| TryFind |
Finds an object instance by an unique ID.
If the row is not found this method will not throw an exception.
| |
| UpdateAndFlush |
Persists the modification on the instance
state to the database.
(Inherited from ActiveRecordBase.) |
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 |
Creates (Saves) a new instance to the database.
| |
| Delete |
Deletes the instance from the database.
| |
| Execute | Overloaded. | |
| ExecuteQuery2<(Of <R>)> |
Executes the query and return a strongly typed result
| |
| 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.) | |
| FindByPrimaryKey | Overloaded. | |
| FindDirty |
Called from Flush(). The return value determines whether the entity is updated
(Inherited from ActiveRecordHooksBase.) | |
| 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 |
Refresh the instance from the database.
| |
| Save | ||
| SaveCopy | ||
| Update |
Persists the modification on the instance
state to the database.
|