AddPrimaryKeyOperation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public class AddPrimaryKeyOperation : System.Data.Entity.Migrations.Model.PrimaryKeyOperation
type AddPrimaryKeyOperation = class
inherit PrimaryKeyOperation
Public Class AddPrimaryKeyOperation
Inherits PrimaryKeyOperation
- Inheritance
Constructors
AddPrimaryKeyOperation(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. |
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) |
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. |
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
Entity Framework