DropForeignKeyOperation Class

 

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.

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


public class DropForeignKeyOperation : ForeignKeyOperation

NameDescription
System_CAPS_pubmethodDropForeignKeyOperation(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..

System_CAPS_pubmethodDropForeignKeyOperation(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.

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_pubpropertyDependentColumns

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

System_CAPS_pubpropertyDependentTable

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

System_CAPS_pubpropertyHasDefaultName

Gets a value indicating if a specific name has been supplied for this foreign key constraint.(Inherited from ForeignKeyOperation.)

System_CAPS_pubpropertyInverse

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.(Overrides MigrationOperation.Inverse.)

System_CAPS_pubpropertyIsDestructiveChange

Gets a value that indicates whether a change is destructive.(Overrides MigrationOperation.IsDestructiveChange.)

System_CAPS_pubpropertyName

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

System_CAPS_pubpropertyPrincipalTable

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

NameDescription
System_CAPS_pubmethodCreateDropIndexOperation()

Gets an operation to drop the associated index on the foreign key column(s).

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.