CreateTableOperation.PrimaryKey Property

 

Gets or sets the primary key for the new table.

Namespace:   System.Data.Entity.Migrations.Model
Assembly:  EntityFramework (in EntityFramework.dll)

public AddPrimaryKeyOperation PrimaryKey { get; set; }

Property Value

Type: System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation

The primary key for the new table.