Add a proxy to the session cache

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

Syntax

C#
public void AddProxy(
	EntityKey key,
	INHibernateProxy proxy
)
Visual Basic
Public Sub AddProxy ( _
	key As EntityKey, _
	proxy As INHibernateProxy _
)
Visual C++
public:
virtual void AddProxy(
	EntityKey^ key, 
	INHibernateProxy^ proxy
) sealed

Parameters

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

[Missing <param name="key"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddProxy(NHibernate.Engine.EntityKey,NHibernate.Proxy.INHibernateProxy)"]

proxy
Type: NHibernate.Proxy..::..INHibernateProxy

[Missing <param name="proxy"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddProxy(NHibernate.Engine.EntityKey,NHibernate.Proxy.INHibernateProxy)"]

Implements

IPersistenceContext..::..AddProxy(EntityKey, INHibernateProxy)

See Also