Called when an entity is passed to Update(Object).
Namespace:
NHibernate.ClassicAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function OnUpdate ( _ s As ISession _ ) As LifecycleVeto |
C# |
---|
LifecycleVeto OnUpdate( ISession s ) |
Visual C++ |
---|
LifecycleVeto OnUpdate( ISession^ s ) |
JavaScript |
---|
function onUpdate(s); |
Parameters
- s
- Type: NHibernate..::.ISession
The session
Return Value
A LifecycleVeto value indicating whether the operation should be vetoed or allowed to proceed.
Remarks
This method is not called every time the object's state is
persisted during a flush.