Generator.Unique-Eigenschaft

Ruft einen Wert ab, der angibt, ob die generierte Spalte Teil einer UNIQUE- oder PRIMARY KEY-Einschränkung ist, oder legt einen Wert fest.

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
    Get
    Set
[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)

Eigenschaftswert

Typ: System.Boolean
true , wenn die generierte Spalte Teil einer UNIQUE- oder PRIMARY KEY-Einschränkung ist, andernfalls false.

Hinweise

Diese Eigenschaft wird mit dem benannten InputAttribute-Parameter und dem benannten AutoAssignedInput-Parameter ergänzt.

.NET Framework-Sicherheit

Siehe auch

Referenz

Generator Klasse

Microsoft.Data.Schema.Tools.DataGenerator-Namespace

InputAttribute

AutoAssignedInput