Add an entity to the cache by unique key

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

Syntax

C#
public void AddEntity(
	EntityUniqueKey euk,
	Object entity
)
Visual Basic
Public Sub AddEntity ( _
	euk As EntityUniqueKey, _
	entity As Object _
)
Visual C++
public:
virtual void AddEntity(
	EntityUniqueKey^ euk, 
	Object^ entity
) sealed

Parameters

euk
Type: NHibernate.Engine..::..EntityUniqueKey

[Missing <param name="euk"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntity(NHibernate.Engine.EntityUniqueKey,System.Object)"]

entity
Type: System..::..Object

[Missing <param name="entity"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntity(NHibernate.Engine.EntityUniqueKey,System.Object)"]

Implements

IPersistenceContext..::..AddEntity(EntityUniqueKey, Object)

See Also