DropForeignKeyOperation 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 a foreign key constraint being dropped 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 DropForeignKeyOperation : System.Data.Entity.Migrations.Model.ForeignKeyOperation
type DropForeignKeyOperation = class
inherit ForeignKeyOperation
Public Class DropForeignKeyOperation
Inherits ForeignKeyOperation
- Inheritance
Constructors
DropForeignKeyOperation(AddForeignKeyOperation, Object) |
Initializes a new instance of the DropForeignKeyOperation 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.. |
DropForeignKeyOperation(Object) |
Initializes a new instance of the DropForeignKeyOperation class. The PrincipalTable, DependentTable and DependentColumns 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) |
DependentColumns |
The names of the foreign key column(s). 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 ForeignKeyOperation) |
DependentTable |
Gets or sets the name of the table that the foreign key columns exist in. 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 ForeignKeyOperation) |
HasDefaultName |
Gets a value indicating if a specific name has been supplied for this foreign key constraint. (Inherited from ForeignKeyOperation) |
Inverse |
Gets an operation that represents reverting dropping the foreign key constraint. The inverse cannot be automatically calculated, if it was not supplied to the constructor this property will return null. |
IsDestructiveChange |
Gets a value indicating if this operation may result in data loss. |
Name |
Gets or sets the name of this foreign key constraint. 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 ForeignKeyOperation) |
PrincipalTable |
Gets or sets the name of the table that the foreign key constraint targets. 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 ForeignKeyOperation) |
Methods
CreateDropIndexOperation() |
Gets an operation to drop the associated index on the foreign key column(s). |
Applies to
Entity Framework