Get the entity instance underlying the given proxy, throwing an exception if the proxy is uninitialized. If the given object is not a proxy, simply return the argument.

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

Syntax

C#
public Object Unproxy(
	Object maybeProxy
)
Visual Basic
Public Function Unproxy ( _
	maybeProxy As Object _
) As Object
Visual C++
public:
virtual Object^ Unproxy(
	Object^ maybeProxy
) sealed

Parameters

maybeProxy
Type: System..::..Object

[Missing <param name="maybeProxy"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.Unproxy(System.Object)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.Unproxy(System.Object)"]

Implements

IPersistenceContext..::..Unproxy(Object)

See Also