This returns the wrong class for an entity with a proxy, or for a named entity. Theoretically it should return the proxy class, but it doesn't.

The problem here is that we do not necessarily have a ref to the associated entity persister (nor to the session factory, to look it up) which is really needed to "do the right thing" here...

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

Syntax

C#
public override Type ReturnedClass { get; }
Visual Basic
Public Overrides ReadOnly Property ReturnedClass As Type
	Get
Visual C++
public:
virtual property Type^ ReturnedClass {
	Type^ get () override;
}

Implements

IType..::..ReturnedClass
IType..::..ReturnedClass

See Also