Gets or sets the PersistentClass that this mapped class is extending.

Namespace:  NHibernate.Mapping
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Overrides Property Superclass As PersistentClass
C#
public override PersistentClass Superclass { get; set; }
Visual C++
public:
virtual property PersistentClass^ Superclass {
	PersistentClass^ get () override;
	void set (PersistentClass^ value) override;
}
JavaScript
function get_superclass();
function set_superclass(value);

Field Value

nullNothingnullptra null reference (Nothing in Visual Basic) since this is the root class.

Exceptions

ExceptionCondition
System..::.InvalidOperationException Thrown when the setter is called. The Superclass can not be set on the RootClass, only the Subclass can have a Superclass set.

See Also