Called after an entity is loaded.

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

Syntax

Visual Basic (Declaration)
Sub OnLoad ( _
	s As ISession, _
	id As Object _
)
C#
void OnLoad(
	ISession s,
	Object id
)
Visual C++
void OnLoad(
	ISession^ s, 
	Object^ id
)
JavaScript
function onLoad(s, 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