Syntax

C#
[SerializableAttribute]
public abstract class ActiveRecordValidationBase<T> where T : class

Type Parameters

T

The type exposes the following members.

Public Constructors

  NameDescription
Public methodActiveRecordValidationBase<(Of <T>)>ActiveRecordValidationBase<(Of <T>)>New
Constructs an ActiveRecordValidationBase

Public Methods

  NameDescription
Public methodCreate
Creates (Saves) a new instance to the database.
(Inherited from ActiveRecordBase.)
Public methodCreateAndFlush
Creates (Saves) a new instance to the database.
(Inherited from ActiveRecordBase.)
Public methodDelete
Deletes the instance from the database.
(Inherited from ActiveRecordBase.)
Public methodDeleteAndFlush
Deletes the instance from the database.
(Inherited from ActiveRecordBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
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 methodIsValidOverloaded.
Public methodRefresh
Refresh the instance from the database.
(Inherited from ActiveRecordBase.)
Public methodSave
Saves the instance information to the database. May Create or Update the instance depending on whether it has a valid ID.
(Inherited from ActiveRecordBase.)
Public methodSaveAndFlush
Saves the instance information to the database. May Create or Update the instance depending on whether it has a valid ID.
(Inherited from ActiveRecordBase.)
Public methodSaveCopy
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.)
Public methodSaveCopyAndFlush
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.)
Public methodToString
Return the type of the object with its PK value. Useful for logging/debugging
(Inherited from ActiveRecordBase.)
Public methodUpdate
Persists the modification on the instance state to the database.
(Inherited from ActiveRecordBase.)
Public methodUpdateAndFlush
Persists the modification on the instance state to the database.
(Inherited from ActiveRecordBase.)

Protected Methods

  NameDescription
Protected methodBeforeDelete
Hook to perform additional tasks before removing the object instance representation from the database.
(Inherited from ActiveRecordHooksBase.)
Protected methodBeforeLoad
Hook to transform the read data from the database before populating the object instance
(Inherited from ActiveRecordHooksBase.)
Protected methodBeforeSave
Override the base hook to call validators required for create.
(Overrides ActiveRecordHooksBase..::BeforeSave(IDictionary).)
Protected methodExecute
Invokes the specified delegate passing a valid NHibernate session. Used for custom NHibernate queries.
(Inherited from ActiveRecordBase.)
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 methodFindDirty
Called from Flush(). The return value determines whether the entity is updated
(Inherited from ActiveRecordHooksBase.)
Protected methodIsUnsaved
Called when a transient entity is passed to SaveOrUpdate.
(Inherited from ActiveRecordHooksBase.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDelete
Lifecycle method invoked during Delete of the entity
(Inherited from ActiveRecordHooksBase.)
Protected methodOnFlushDirty
Override the base hook to call validators required for update.
(Overrides ActiveRecordHooksBase..::OnFlushDirty(Object, IDictionary, IDictionary, array<IType>[]()).)
Protected methodOnLoad
Lifecycle method invoked during Load of the entity
(Inherited from ActiveRecordHooksBase.)
Protected methodOnNotValid
Throws an exception explaining why the save or update cannot be executed when fields are not ok to pass.
Protected methodOnSave
Lifecycle method invoked during Save of the entity
(Inherited from ActiveRecordHooksBase.)
Protected methodOnUpdate
Lifecycle method invoked during Update of the entity
(Inherited from ActiveRecordHooksBase.)
Protected methodPostFlush
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.)
Protected methodPreFlush
Called before a flush
(Inherited from ActiveRecordHooksBase.)

Public Properties

  NameDescription
Public propertyPropertiesValidationErrorMessage
Maps a specific PropertyInfo to a list of error messages. Useful for frameworks.
Public propertyValidationErrorMessages
Returns a list of current validation errors messages.

See Also