PrimaryKeyOperation Class

Definition

Common base class to represent operations affecting primary keys.

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 abstract class PrimaryKeyOperation : System.Data.Entity.Migrations.Model.MigrationOperation
type PrimaryKeyOperation = class
    inherit MigrationOperation
Public MustInherit Class PrimaryKeyOperation
Inherits MigrationOperation
Inheritance
PrimaryKeyOperation
Derived

Constructors

PrimaryKeyOperation(Object)

Initializes a new instance of the PrimaryKeyOperation class.

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.

HasDefaultName

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

Inverse

Gets an operation that will revert this operation.

(Inherited from MigrationOperation)
IsClustered

Gets or sets whether this is a clustered primary key.

IsDestructiveChange

Gets a value indicating if this operation may result in data loss.

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.

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.

Methods

BuildDefaultName(String)

Returns the default name for the primary key.

Applies to