Syntax

C#
public class ActiveRecordMediator

The type exposes the following members.

Public Constructors

Public Methods

  NameDescription
Public methodStatic memberCountOverloaded.
Public methodStatic memberCreate
Creates (Saves) a new instance to the database.
Public methodStatic memberCreateAndFlush
Creates (Saves) a new instance to the database and flushes the session.
Public methodStatic memberDelete
Deletes the instance from the database.
Public methodStatic memberDeleteAllOverloaded.
Public methodStatic memberDeleteAndFlush
Deletes the instance from the database and flushes the session.
Public methodStatic memberEnumerateQuery
Enumerates the query. Note: Only use if you expect most of the values to be on the second level cache
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberExecute
Invokes the specified delegate passing a valid NHibernate session. Used for custom NHibernate queries.
Public methodStatic memberExecuteQuery
Executes the query
Public methodStatic memberExistsOverloaded.
Public methodStatic memberFindAllOverloaded.
Public methodStatic memberFindAllByPropertyOverloaded.
Public methodStatic memberFindByPrimaryKeyOverloaded.
Public methodStatic memberFindFirstOverloaded.
Public methodStatic memberFindOneOverloaded.
Public methodGetHashCode
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.)
Public methodStatic memberGetSessionFactoryHolder
Testing hock only.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberRefresh
Refresh the instance from the database.
Public methodStatic memberReplicate
From NHibernate documentation: Persist all reachable transient objects, reusing the current identifier values. Note that this will not trigger the Interceptor of the Session.
Public methodStatic memberSave
Saves the instance to the database
Public methodStatic memberSaveAndFlush
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.

Public methodStatic memberSaveCopy
Saves a copy of instance to the database
Public methodStatic memberSaveCopyAndFlush
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.

Public methodStatic memberSlicedFindAllOverloaded.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodStatic memberUpdate
Persists the modification on the instance state to the database.
Public methodStatic memberUpdateAndFlush
Persists the modification on the instance state to the database and flushes the session.

Protected Methods

  NameDescription
Protected methodStatic memberCountOverloaded.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodStatic memberFindOneOverloaded.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)

See Also