CreateTableOperation.PrimaryKey-Eigenschaft
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Ruft den Primärschlüssel für die neue Tabelle ab oder legt ihn fest.
Namespace: System.Data.Entity.Migrations.Model
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Property PrimaryKey As AddPrimaryKeyOperation
Get
Set
'Usage
Dim instance As CreateTableOperation
Dim value As AddPrimaryKeyOperation
value = instance.PrimaryKey
instance.PrimaryKey = value
public AddPrimaryKeyOperation PrimaryKey { get; set; }
public:
property AddPrimaryKeyOperation^ PrimaryKey {
AddPrimaryKeyOperation^ get ();
void set (AddPrimaryKeyOperation^ value);
}
member PrimaryKey : AddPrimaryKeyOperation with get, set
function get PrimaryKey () : AddPrimaryKeyOperation
function set PrimaryKey (value : AddPrimaryKeyOperation)
Eigenschaftswert
Typ: System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation
Der Primärschlüssel für die neue Tabelle.