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

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

Syntax

C#
public virtual string DiscriminatorValue { get; set; }
Visual Basic
Public Overridable Property DiscriminatorValue As String
	Get
	Set
Visual C++
public:
virtual property String^ DiscriminatorValue {
	String^ get ();
	void set (String^ 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 hierarchy must define a unique discriminator-value. The default value is the class name if no value is supplied.

See Also