AssociationAttribute.IsUnique Property


Gets or sets the indication of a uniqueness constraint on the foreign key.

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

public bool IsUnique { get; set; }

Property Value

Type: System.Boolean

Default = false.

When true, this property indicates a true 1:1 relationship.

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top