Generates an appropriate proxy representation of this entity for this entity-mode.

Namespace: NHibernate.Tuple.Entity
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
Object CreateProxy(
	Object id,
	ISessionImplementor session
)
Visual Basic
Function CreateProxy ( _
	id As Object, _
	session As ISessionImplementor _
) As Object
Visual C++
Object^ CreateProxy(
	Object^ id, 
	ISessionImplementor^ session
)

Parameters

id
Type: System..::..Object
The id of the instance for which to generate a proxy.
session
Type: NHibernate.Engine..::..ISessionImplementor
The session to which the proxy should be bound.

Return Value

The generate proxies.

See Also