Grab the existing proxy for an instance, if one exists. (otherwise return the instance)

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

Syntax

Visual Basic (Declaration)
Public Function ProxyFor ( _
	persister As IEntityPersister, _
	key As EntityKey, _
	impl As Object _
) As Object
C#
public Object ProxyFor(
	IEntityPersister persister,
	EntityKey key,
	Object impl
)
Visual C++
public:
virtual Object^ ProxyFor(
	IEntityPersister^ persister, 
	EntityKey^ key, 
	Object^ impl
) sealed
JavaScript
function proxyFor(persister, key, impl);

Return Value

Implements

ISessionImplementor..::.ProxyFor(IEntityPersister, EntityKey, Object)

See Also