ForeignKeyOperation Class

Base class for changes that affect foreign key constraints.

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

public abstract class ForeignKeyOperation : MigrationOperation

The ForeignKeyOperation type exposes the following members.

Protected methodForeignKeyOperation Initializes a new instance of the ForeignKeyOperation class.

Public propertyAnonymousArguments Gets additional arguments that may be processed by providers. (Inherited from MigrationOperation.)
Public propertyDependentColumns The names of the foreign key column(s).
Public propertyDependentTable Gets or sets the name of the table that the foreign key columns exist in.
Public propertyHasDefaultName Gets a value indicating if a specific name has been supplied for this foreign key constraint.
Public propertyInverse Gets an operation that will revert this operation. (Inherited from MigrationOperation.)
Public propertyIsDestructiveChange Gets a value indicating if this operation may result in data loss. (Inherited from MigrationOperation.)
Public propertyName Gets or sets the name of this foreign key constraint. If no name is supplied, a default name will be calculated.
Public propertyPrincipalTable Gets or sets the name of the table that the foreign key constraint targets.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (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.