Thrown when ISession.Load() selects a row with the given primary key (identifier value) but the row's discriminator value specifies a different subclass from the one requested

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

Syntax

C#
[SerializableAttribute]
public class WrongClassException : HibernateException, 
	ISerializable
Visual Basic
<SerializableAttribute> _
Public Class WrongClassException _
	Inherits HibernateException _
	Implements ISerializable
Visual C++
[SerializableAttribute]
public ref class WrongClassException : public HibernateException, 
	ISerializable

Inheritance Hierarchy

System..::..Object
  System..::..Exception
    System..::..ApplicationException
      NHibernate..::..HibernateException
        NHibernate..::..WrongClassException

See Also