AddPrimaryKeyOperation Class
Entity Framework 5.0
Represents adding a primary key to a table.
System.Object
System.Data.Entity.Migrations.Model.MigrationOperation
System.Data.Entity.Migrations.Model.PrimaryKeyOperation
System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation
System.Data.Entity.Migrations.Model.MigrationOperation
System.Data.Entity.Migrations.Model.PrimaryKeyOperation
System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation
Namespace: System.Data.Entity.Migrations.Model
Assembly: EntityFramework (in EntityFramework.dll)
The AddPrimaryKeyOperation type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AddPrimaryKeyOperation | Initializes a new instance of the AddPrimaryKeyOperation class. The Table and Columns properties should also be populated. |
| Name | Description | |
|---|---|---|
![]() | AnonymousArguments | Gets additional arguments that may be processed by providers. (Inherited from MigrationOperation.) |
![]() | Columns | Gets the column(s) that make up the primary key. (Inherited from PrimaryKeyOperation.) |
![]() | HasDefaultName | Gets a value indicating if a specific name has been supplied for this primary key. (Inherited from PrimaryKeyOperation.) |
![]() | Inverse | Gets an operation to drop the primary key. (Overrides MigrationOperation.Inverse.) |
![]() | IsDestructiveChange | Gets a value indicating if this operation may result in data loss. (Inherited from PrimaryKeyOperation.) |
![]() | Name | Gets or sets the name of this primary key. If no name is supplied, a default name will be calculated. (Inherited from PrimaryKeyOperation.) |
![]() | Table | Gets or sets the name of the table that contains the primary key. (Inherited from PrimaryKeyOperation.) |
Show:
