Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

DropForeignKeyOperation Class

Entity Framework 5.0

Represents a foreign key constraint being dropped from a table.

Namespace:  System.Data.Entity.Migrations.Model
Assembly:  EntityFramework (in EntityFramework.dll)
public class DropForeignKeyOperation : ForeignKeyOperation

The DropForeignKeyOperation type exposes the following members.

  NameDescription
Public methodDropForeignKeyOperation(Object) Initializes a new instance of the DropForeignKeyOperation class. The PrincipalTable, DependentTable and DependentColumns properties should also be populated.
Public methodDropForeignKeyOperation(AddForeignKeyOperation, Object) Initializes a new instance of the DropForeignKeyOperation class.
Top
  NameDescription
Public propertyAnonymousArguments Gets additional arguments that may be processed by providers. (Inherited from MigrationOperation.)
Public propertyDependentColumns The names of the foreign key column(s). (Inherited from ForeignKeyOperation.)
Public propertyDependentTable Gets or sets the name of the table that the foreign key columns exist in. (Inherited from ForeignKeyOperation.)
Public propertyHasDefaultName Gets a value indicating if a specific name has been supplied for this foreign key constraint. (Inherited from ForeignKeyOperation.)
Public propertyInverse 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.)
Public propertyIsDestructiveChangeGets a value indicating whether the change is destructive. (Overrides MigrationOperation.IsDestructiveChange.)
Public propertyName Gets or sets the name of this foreign key constraint. If no name is supplied, a default name will be calculated. (Inherited from ForeignKeyOperation.)
Public propertyPrincipalTable Gets or sets the name of the table that the foreign key constraint targets. (Inherited from ForeignKeyOperation.)
Top
  NameDescription
Public methodCreateDropIndexOperation Gets an operation to drop the associated index on the foreign key column(s).
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.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.