Share via


Generator.Unique Property

Gets or sets a value that indicates whether the column that is generated is part of a unique constraint or a primary key constraint.

Namespace:  Microsoft.Data.Schema.Tools.DataGenerator
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
<InputAttribute(AutoAssignedInput := AutoAssignedInput.Unique, Visible := True,  _
    ReadOnly := False)> _
Public Property Unique As Boolean
[InputAttribute(AutoAssignedInput = AutoAssignedInput.Unique, Visible = true, 
    ReadOnly = false)]
public bool Unique { get; set; }
[InputAttribute(AutoAssignedInput = AutoAssignedInput::Unique, Visible = true, 
    ReadOnly = false)]
public:
property bool Unique {
    bool get ();
    void set (bool value);
}
[<InputAttribute(AutoAssignedInput = AutoAssignedInput.Unique, Visible = true, 
    ReadOnly = false)>]
member Unique : bool with get, set
function get Unique () : boolean
function set Unique (value : boolean)

Property Value

Type: System.Boolean
true if the column that is generated is part of a unique constraint or a primary key constraint; otherwise, false.

Remarks

This property is decorated with the InputAttribute and the AutoAssignedInput named parameter.

.NET Framework Security

See Also

Reference

Generator Class

Microsoft.Data.Schema.Tools.DataGenerator Namespace

InputAttribute

AutoAssignedInput