Add a canonical mapping from entity key to entity instance

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

Syntax

C#
void AddEntity(
	EntityKey key,
	Object entity
)
Visual Basic
Sub AddEntity ( _
	key As EntityKey, _
	entity As Object _
)
Visual C++
void AddEntity(
	EntityKey^ key, 
	Object^ entity
)

Parameters

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

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

entity
Type: System..::..Object

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

See Also