Facilitates Single Table Inheritance. Use the Attribute property
to indicate the database column used to discriminate between types in an
inheritance hierachy. The database column used as a discriminator is not required
to exist in the domain model.

C# | Visual Basic |
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = false)] public sealed class DiscriminatorAttribute : Attribute
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := False)> _ Public NotInheritable Class DiscriminatorAttribute _ Inherits Attribute

All Members | Constructors | Properties | |||
Icon | Member | Description |
---|---|---|
![]() | DiscriminatorAttribute()()() | |
![]() | Attribute |
The database column used to discriminate between types in an
inheritance hierachy. The database column used as a discriminator is not required
to exist in the domain model.
|
![]() | Value |
The value of Attribute that when matched causes instances of the type
associated with this DiscriminatorAttribute to be created.
|