Namespaces

Types

Type NHibernateProxyHelper

Namespace NHibernate.Proxy

Methods

Public instance methods

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

string ToString()

Parameters
return string

Public static methods

Type GetClass(object obj)

Convenience method to figure out the underlying type for the object regardless of it is a Proxied object or the real object.
Parameters
return Type The Underlying Type for the object regardless of if it is a Proxy.
object obj The object to get the type of.

object GetIdentifier(object obj, IEntityPersister persister)

Parameters
return object
object obj
IEntityPersister persister

LazyInitializer GetLazyInitializer(INHibernateProxy proxy)

Gets the LazyInitializer that is used by the Proxy.
Parameters
return LazyInitializer A reference to LazyInitializer that contains the details of the Proxied object.
INHibernateProxy proxy The Proxy object

Type GuessClass(object proxy)

Get the true, underlying class of a proxied persistent class. This operation will NOT initialize the proxy and thus may return an incorrect result.
This method is approximate match for Session.bestGuessEntityName in H3.2
Parameters
return Type guessed class of the instance
object proxy a persistable object or proxy