Syntax
| C# |
|---|
public class ActiveRecordMediator |
The type exposes the following members.
Public Constructors
| Name | Description | |
|---|---|---|
| ActiveRecordMediatorActiveRecordMediatorNew |
Public Methods
| Name | Description | |
|---|---|---|
| Count | Overloaded. | |
| Create |
Creates (Saves) a new instance to the database.
| |
| CreateAndFlush |
Creates (Saves) a new instance to the database and flushes the session.
| |
| Delete |
Deletes the instance from the database.
| |
| DeleteAll | Overloaded. | |
| DeleteAndFlush |
Deletes the instance from the database and flushes the session.
| |
| EnumerateQuery |
Enumerates the query.
Note: Only use if you expect most of the values to be on the second level cache
| |
| Equals | (Inherited from Object.) | |
| Execute |
Invokes the specified delegate passing a valid
NHibernate session. Used for custom NHibernate queries.
| |
| ExecuteQuery |
Executes the query
| |
| Exists | Overloaded. | |
| FindAll | Overloaded. | |
| FindAllByProperty | Overloaded. | |
| FindByPrimaryKey | 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.) | |
| GetSessionFactoryHolder |
Testing hock only.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Refresh |
Refresh the instance from the database.
| |
| 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 |
Saves the instance to the database
| |
| SaveAndFlush |
Saves the instance to the database and flushes the session. If the primary key is unitialized
it creates the instance on the database. Otherwise it updates it.
If the primary key is assigned, then you must invoke Create(Object) or Update(Object) instead. | |
| SaveCopy |
Saves a copy of instance to the database
| |
| SaveCopyAndFlush |
Saves a copy of the instance to the database and flushes the session. If the primary key is unitialized
it creates the instance on the database. Otherwise it updates it.
If the primary key is assigned, then you must invoke Create(Object) or Update(Object) instead. | |
| SlicedFindAll | Overloaded. | |
| ToString | (Inherited from Object.) | |
| Update |
Persists the modification on the instance
state to the database.
| |
| UpdateAndFlush |
Persists the modification on the instance
state to the database and flushes the session.
|
Protected Methods
| Name | Description | |
|---|---|---|
| Count | 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.) | |
| FindOne | Overloaded. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
See Also
Castle.ActiveRecord Namespace