Gets or sets the PersistentClass that this mapped class is extending.
Namespace: NHibernate.MappingAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public override PersistentClass Superclass { get; set; } |
Visual Basic |
---|
Public Overrides Property Superclass As PersistentClass Get Set |
Visual C++ |
---|
public: virtual property PersistentClass^ Superclass { PersistentClass^ get () override; void set (PersistentClass^ value) override; } |
Field Value
nullNothingnullptra null reference (Nothing in Visual Basic) since this is the root class.Exceptions
Exception | Condition |
---|---|
System..::..InvalidOperationException | Thrown when the setter is called. The Superclass can not be set on the RootClass, only the SubclassType can have a Superclass set. |