AddPrimaryKeyOperation Class

 

Represents adding a primary key to 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.

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


public class AddPrimaryKeyOperation : PrimaryKeyOperation

NameDescription
System_CAPS_pubmethodAddPrimaryKeyOperation(Object)

Initializes a new instance of the AddPrimaryKeyOperation 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.

NameDescription
System_CAPS_pubpropertyAnonymousArguments

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.)

System_CAPS_pubpropertyColumns

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.)

System_CAPS_pubpropertyHasDefaultName

Gets a value indicating if a specific name has been supplied for this primary key.(Inherited from PrimaryKeyOperation.)

System_CAPS_pubpropertyInverse

Gets an operation to drop the primary key.(Overrides MigrationOperation.Inverse.)

System_CAPS_pubpropertyIsClustered

Gets or sets whether this is a clustered primary key.

System_CAPS_pubpropertyIsDestructiveChange

Gets a value indicating whether this operation may result in data loss.(Inherited from PrimaryKeyOperation.)

System_CAPS_pubpropertyName

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.)

System_CAPS_pubpropertyTable

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.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.