Gets or Sets the value to use as the discriminator for the Class.

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

Syntax

Visual Basic (Declaration)
Public Overridable Property DiscriminatorValue As String
C#
public virtual string DiscriminatorValue { get; set; }
Visual C++
public:
virtual property String^ DiscriminatorValue {
	String^ get ();
	void set (String^ value);
}
JavaScript
function get_discriminatorValue();
function set_discriminatorValue(value);

Field Value

A value that distinguishes this subclass in the database.

Remarks

The value of this is set by the discriminator-value attribute. Each <subclass> in a heirarchy must define a unique discriminator-value. The default value is the class name if no value is supplied.

See Also