Add a canonical mapping from entity key to entity instance
Namespace: NHibernate.EngineAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public void AddEntity( EntityKey key, Object entity ) |
Visual Basic |
---|
Public Sub AddEntity ( _ key As EntityKey, _ entity As Object _ ) |
Visual C++ |
---|
public: virtual void AddEntity( EntityKey^ key, Object^ entity ) sealed |
Parameters
- key
- Type: NHibernate.Engine..::..EntityKey
[Missing <param name="key"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntity(NHibernate.Engine.EntityKey,System.Object)"]
- entity
- Type: System..::..Object
[Missing <param name="entity"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntity(NHibernate.Engine.EntityKey,System.Object)"]