src/Shared/EntityFramework/Migrations/DbMigration.cs
/// <summary>
/// Adds an operation to drop a foreign key constraint based on its name.
///
/// 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.
/// </summary>
/// <param name="dependentTable">
/// The table that contains the foreign key column. Schema name is optional, if no schema is
/// specified then dbo is assumed.
/// </param>
/// <param name="name"> The name of the foreign key constraint in the database. </param>
/// <param name="anonymousArguments">
/// Additional arguments that may be processed by providers. Use anonymous type syntax to
/// specify arguments e.g. 'new { SampleArgument = "MyValue" }'.
/// </param>
Adds an operation to drop a foreign key constraint based on its name.

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.
Adds an operation to drop a foreign key constraint based on its name . 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 .
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
        protected internal void DropForeignKey(string dependentTable, string name, object anonymousArguments = null)
        {
            Check.NotEmpty(dependentTable, "dependentTable");
            Check.NotEmpty(name, "name");
            var dropForeignKeyOperation
                = new DropForeignKeyOperation(anonymousArguments)
                  {
                      DependentTable = dependentTable,
                      Name = name
                  };
            AddOperation(dropForeignKeyOperation);
        }
[ SuppressMessage ( " " , " " ) ] protected internal void DropForeignKey ( string dependentTable , string name , object anonymousArguments = null ) { Check . NotEmpty ( dependentTable , " " ) ; Check . NotEmpty ( name , " " ) ; var dropForeignKeyOperation = new DropForeignKeyOperation ( anonymousArguments ) { DependentTable = dependentTable , Name = name } ; AddOperation ( dropForeignKeyOperation ) ; }
Adds an operation to drop a foreign key constraint based on its name.
Adds an operation to drop a foreign key constraint based on its name .
dependentTable
string
The table that contains the foreign key column. Schema name is optional, if no schema is
specified then dbo is assumed.
The table that contains the foreign key column . Schema name is optional if no schema is specified then dbo is assumed .
name
string
The name of the foreign key constraint in the database.
The name of the foreign key constraint in the database .
anonymousArguments
object
Additional arguments that may be processed by providers. Use anonymous type syntax to
specify arguments e.g. 'new { SampleArgument = "MyValue" }'.
Additional arguments that may be processed by providers . Use anonymous type syntax to specify arguments e . g . ' new { SampleArgument = " MyValue " } ' .