Partager via


ColumnAttribute.IsDiscriminator Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets whether a column contains a discriminator value for a LINQ to SQL inheritance hierarchy.

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Syntax

'Declaration
Public Property IsDiscriminator As Boolean
public bool IsDiscriminator { get; set; }

Property Value

Type: System.Boolean
Default = false.

Remarks

When true, this property identifies the class member as holding the discriminator value for an inheritance hierarchy.

You can set this property to true for no more than one member, which must belong to the topmost mapped class in the hierarchy.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.