Called when an entity is deleted

Namespace: NHibernate.Classic
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
LifecycleVeto OnDelete(
	ISession s
)
Visual Basic
Function OnDelete ( _
	s As ISession _
) As LifecycleVeto
Visual C++
LifecycleVeto OnDelete(
	ISession^ s
)

Parameters

s
Type: NHibernate..::..ISession
The session

Return Value

A LifecycleVeto value indicating whether the operation should be vetoed or allowed to proceed.

See Also