Perform the second step of 2-phase load. Fully initialize the entity instance. After processing a JDBC result set, we "resolve" all the associations between the entities which were instantiated and had their state "hydrated" into an array

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

Syntax

C#
public static void InitializeEntity(
	Object entity,
	bool readOnly,
	ISessionImplementor session,
	PreLoadEvent preLoadEvent,
	PostLoadEvent postLoadEvent
)
Visual Basic
Public Shared Sub InitializeEntity ( _
	entity As Object, _
	readOnly As Boolean, _
	session As ISessionImplementor, _
	preLoadEvent As PreLoadEvent, _
	postLoadEvent As PostLoadEvent _
)
Visual C++
public:
static void InitializeEntity(
	Object^ entity, 
	bool readOnly, 
	ISessionImplementor^ session, 
	PreLoadEvent^ preLoadEvent, 
	PostLoadEvent^ postLoadEvent
)

Parameters

entity
Type: System..::..Object

[Missing <param name="entity"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.InitializeEntity(System.Object,System.Boolean,NHibernate.Engine.ISessionImplementor,NHibernate.Event.PreLoadEvent,NHibernate.Event.PostLoadEvent)"]

readOnly
Type: System..::..Boolean

[Missing <param name="readOnly"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.InitializeEntity(System.Object,System.Boolean,NHibernate.Engine.ISessionImplementor,NHibernate.Event.PreLoadEvent,NHibernate.Event.PostLoadEvent)"]

session
Type: NHibernate.Engine..::..ISessionImplementor

[Missing <param name="session"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.InitializeEntity(System.Object,System.Boolean,NHibernate.Engine.ISessionImplementor,NHibernate.Event.PreLoadEvent,NHibernate.Event.PostLoadEvent)"]

preLoadEvent
Type: NHibernate.Event..::..PreLoadEvent

[Missing <param name="preLoadEvent"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.InitializeEntity(System.Object,System.Boolean,NHibernate.Engine.ISessionImplementor,NHibernate.Event.PreLoadEvent,NHibernate.Event.PostLoadEvent)"]

postLoadEvent
Type: NHibernate.Event..::..PostLoadEvent

[Missing <param name="postLoadEvent"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.InitializeEntity(System.Object,System.Boolean,NHibernate.Engine.ISessionImplementor,NHibernate.Event.PreLoadEvent,NHibernate.Event.PostLoadEvent)"]

See Also