Build a proxy using the Castle.DynamicProxy library.

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

Syntax

Visual Basic (Declaration)
Public Function GetProxy ( _
	id As Object, _
	session As ISessionImplementor _
) As INHibernateProxy
C#
public INHibernateProxy GetProxy(
	Object id,
	ISessionImplementor session
)
Visual C++
public:
virtual INHibernateProxy^ GetProxy(
	Object^ id, 
	ISessionImplementor^ session
) sealed
JavaScript
function getProxy(id, session);

Parameters

id
Type: System..::.Object
The value for the Id.
session
Type: NHibernate.Engine..::.ISessionImplementor
The Session the proxy is in.

Return Value

A fully built INHibernateProxy.

Implements

IProxyFactory..::.GetProxy(Object, ISessionImplementor)

See Also