ForeignKeyOperation Class

Definition

Base class for changes that affect foreign key constraints.

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

Constructors

ForeignKeyOperation(Object)

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

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.

HasDefaultName

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

Inverse

Gets an operation that will revert this operation.

(Inherited from MigrationOperation)
IsDestructiveChange

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

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

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.

Applies to