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#
Object Unproxy(
	Object maybeProxy
)
Visual Basic
Function Unproxy ( _
	maybeProxy As Object _
) As Object
Visual C++
Object^ Unproxy(
	Object^ maybeProxy
)

Parameters

maybeProxy
Type: System..::..Object

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

Return Value

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

See Also