Add an uninitialized instance of an entity class, as a placeholder to ensure object identity. Must be called before postHydrate(). Create a "temporary" entry for a newly instantiated entity. The entity is uninitialized, but we need the mapping from id to instance in order to guarantee uniqueness.

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

Syntax

C#
public static void AddUninitializedEntity(
	EntityKey key,
	Object obj,
	IEntityPersister persister,
	LockMode lockMode,
	bool lazyPropertiesAreUnfetched,
	ISessionImplementor session
)
Visual Basic
Public Shared Sub AddUninitializedEntity ( _
	key As EntityKey, _
	obj As Object, _
	persister As IEntityPersister, _
	lockMode As LockMode, _
	lazyPropertiesAreUnfetched As Boolean, _
	session As ISessionImplementor _
)
Visual C++
public:
static void AddUninitializedEntity(
	EntityKey^ key, 
	Object^ obj, 
	IEntityPersister^ persister, 
	LockMode^ lockMode, 
	bool lazyPropertiesAreUnfetched, 
	ISessionImplementor^ session
)

Parameters

key
Type: NHibernate.Engine..::..EntityKey

[Missing <param name="key"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.AddUninitializedEntity(NHibernate.Engine.EntityKey,System.Object,NHibernate.Persister.Entity.IEntityPersister,NHibernate.LockMode,System.Boolean,NHibernate.Engine.ISessionImplementor)"]

obj
Type: System..::..Object

[Missing <param name="obj"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.AddUninitializedEntity(NHibernate.Engine.EntityKey,System.Object,NHibernate.Persister.Entity.IEntityPersister,NHibernate.LockMode,System.Boolean,NHibernate.Engine.ISessionImplementor)"]

persister
Type: NHibernate.Persister.Entity..::..IEntityPersister

[Missing <param name="persister"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.AddUninitializedEntity(NHibernate.Engine.EntityKey,System.Object,NHibernate.Persister.Entity.IEntityPersister,NHibernate.LockMode,System.Boolean,NHibernate.Engine.ISessionImplementor)"]

lockMode
Type: NHibernate..::..LockMode

[Missing <param name="lockMode"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.AddUninitializedEntity(NHibernate.Engine.EntityKey,System.Object,NHibernate.Persister.Entity.IEntityPersister,NHibernate.LockMode,System.Boolean,NHibernate.Engine.ISessionImplementor)"]

lazyPropertiesAreUnfetched
Type: System..::..Boolean

[Missing <param name="lazyPropertiesAreUnfetched"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.AddUninitializedEntity(NHibernate.Engine.EntityKey,System.Object,NHibernate.Persister.Entity.IEntityPersister,NHibernate.LockMode,System.Boolean,NHibernate.Engine.ISessionImplementor)"]

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

[Missing <param name="session"/> documentation for "M:NHibernate.Engine.TwoPhaseLoad.AddUninitializedEntity(NHibernate.Engine.EntityKey,System.Object,NHibernate.Persister.Entity.IEntityPersister,NHibernate.LockMode,System.Boolean,NHibernate.Engine.ISessionImplementor)"]

See Also