Get the true, underlying class of a proxied persistent class. This operation will NOT initialize the proxy and thus may return an incorrect result.

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

Syntax

C#
public static Type GuessClass(
	Object entity
)
Visual Basic
Public Shared Function GuessClass ( _
	entity As Object _
) As Type
Visual C++
public:
static Type^ GuessClass(
	Object^ entity
)

Parameters

entity
Type: System..::..Object
a persistable object or proxy

Return Value

guessed class of the instance

Remarks

This method is approximate match for Session.bestGuessEntityName in H3.2

See Also