If the existing proxy is insufficiently "narrow" (derived), instantiate a new proxy and overwrite the registration of the old one. This breaks == and occurs only for "class" proxies rather than "interface" proxies.

Namespace:  NHibernate.Impl
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Function NarrowProxy ( _
	proxy As Object, _
	persister As IEntityPersister, _
	key As EntityKey, _
	obj As Object _
) As Object
C#
public Object NarrowProxy(
	Object proxy,
	IEntityPersister persister,
	EntityKey key,
	Object obj
)
Visual C++
public:
Object^ NarrowProxy(
	Object^ proxy, 
	IEntityPersister^ persister, 
	EntityKey^ key, 
	Object^ obj
)
JavaScript
function narrowProxy(proxy, persister, key, obj);

Return Value

See Also