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.

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

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

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    Mindscape.LightSpeed..::.DiscriminatorAttribute

See Also