Share via


DropPrimaryKeyOperation Class

Definition

Represents dropping a primary key from a table.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

public class DropPrimaryKeyOperation : System.Data.Entity.Migrations.Model.PrimaryKeyOperation
type DropPrimaryKeyOperation = class
    inherit PrimaryKeyOperation
Public Class DropPrimaryKeyOperation
Inherits PrimaryKeyOperation
Inheritance

Constructors

DropPrimaryKeyOperation(Object)

Initializes a new instance of the DropPrimaryKeyOperation class. The Table and Columns properties should also be populated.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

Properties

AnonymousArguments

Gets additional arguments that may be processed by providers.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

(Inherited from MigrationOperation)
Columns

Gets the column(s) that make up the primary key.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

(Inherited from PrimaryKeyOperation)
CreateTableOperation

Used when altering the migrations history table so that the table can be rebuilt rather than just dropping and adding the primary key.

HasDefaultName

Gets a value indicating if a specific name has been supplied for this primary key.

(Inherited from PrimaryKeyOperation)
Inverse

Gets an operation to add the primary key.

IsClustered

Gets or sets whether this is a clustered primary key.

(Inherited from PrimaryKeyOperation)
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.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

(Inherited from PrimaryKeyOperation)
Table

Gets or sets the name of the table that contains the primary key.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

(Inherited from PrimaryKeyOperation)

Applies to