Syntax

C#
public class ActiveRecordMediator<T> where T : class

Type Parameters

T

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 memberDelete
Deletes the instance from the database.
Public methodStatic memberDeleteAllOverloaded.
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 memberExecuteQuery2<(Of <R>)>
Executes the query and return a strongly typed result
Public methodStatic memberExistsOverloaded.
Public methodStatic memberFindAllOverloaded.
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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberRefresh
Refresh the instance from the database.
Public methodStatic memberSave
Saves the instance to the database
Public methodStatic memberSaveCopy
Saves a copy of the instance to the database
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.

Protected Methods

  NameDescription
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 methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)

See Also