This documentation is archived and is not being maintained.

ColumnAttribute.IsDiscriminator Property

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)

public bool IsDiscriminator { get; set; }

Property Value

Type: System.Boolean
Default = false.

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.

	[Column(Storage="_Title", DbType="NVarChar(30)",IsDiscriminator=true)]
	public string Title
			return this._Title;
			if ((this._Title != value))
				this._Title = value;

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.