IndexAttribute.IsUnique Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set this property to true to define a unique index. Set this property to false to define a non-unique index.
public virtual bool IsUnique { get; set; }
member this.IsUnique : bool with get, set
Public Overridable Property IsUnique As Boolean
Property Value
Remarks
The value of this property is only relevant if IsUniqueConfigured returns true. If IsUniqueConfigured returns false, then the value of this property is meaningless.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework