Namespaces

Types

Type ILifecycle

Namespace NHibernate.Classic

Methods

Public instance methods

LifecycleVeto OnDelete(ISession s)

Called when an entity is deleted
Parameters
return LifecycleVeto A LifecycleVeto value indicating whether the operation should be vetoed or allowed to proceed.
ISession s The session

void OnLoad(ISession s, object id)

Called after an entity is loaded.
. However, the object may keep a reference to the session for later use
Parameters
ISession s The session
object id The identifier

LifecycleVeto OnSave(ISession s)

Called when an entity is saved
Parameters
return LifecycleVeto If we should veto the save
ISession s The session

LifecycleVeto OnUpdate(ISession s)

Called when an entity is passed to Update .
This method is called every time the object's state is persisted during a flush.
Parameters
return LifecycleVeto A LifecycleVeto value indicating whether the operation should be vetoed or allowed to proceed.
ISession s The session