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#
void AddEntity(
	EntityUniqueKey euk,
	Object entity
)
Visual Basic
Sub AddEntity ( _
	euk As EntityUniqueKey, _
	entity As Object _
)
Visual C++
void AddEntity(
	EntityUniqueKey^ euk, 
	Object^ entity
)

Parameters

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

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

entity
Type: System..::..Object

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

See Also