Called after an entity is loaded.

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

Syntax

C#
void OnLoad(
	ISession s,
	Object id
)
Visual Basic
Sub OnLoad ( _
	s As ISession, _
	id As Object _
)
Visual C++
void OnLoad(
	ISession^ s, 
	Object^ id
)

Parameters

s
Type: NHibernate..::..ISession
The session
id
Type: System..::..Object
The identifier

Remarks

Note
It is illegal to access the ISession from inside this method.
. However, the object may keep a reference to the session for later use

See Also