src/Shared/EntityFramework/Migrations/DbMigration.cs
/// <summary>
/// Adds an operation to drop a foreign key constraint based on the column it 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.
/// </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="dependentColumn"> The foreign key column. </param>
/// <param name="principalTable">
/// The table that contains the column this foreign key references. Schema name is optional,
/// if no schema is specified then dbo is assumed.
/// </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 the column it 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.
Adds an operation to drop a foreign key constraint based on the column it 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 .
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
        protected internal void DropForeignKey(
            string dependentTable,
            string dependentColumn,
            string principalTable,
            object anonymousArguments = null)
        {
            Check.NotEmpty(dependentTable, "dependentTable");
            Check.NotEmpty(dependentColumn, "dependentColumn");
            Check.NotEmpty(principalTable, "principalTable");
            DropForeignKey(
                dependentTable,
                new[] { dependentColumn },
                principalTable,
                anonymousArguments);
        }
[ SuppressMessage ( " " , " " ) ] protected internal void DropForeignKey ( string dependentTable , string dependentColumn , string principalTable , object anonymousArguments = null ) { Check . NotEmpty ( dependentTable , " " ) ; Check . NotEmpty ( dependentColumn , " " ) ; Check . NotEmpty ( principalTable , " " ) ; DropForeignKey ( dependentTable , new [ ] { dependentColumn } , principalTable , anonymousArguments ) ; }
Adds an operation to drop a foreign key constraint based on the column it targets.
Adds an operation to drop a foreign key constraint based on the column it targets .
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 .
dependentColumn
string
The foreign key column.
The foreign key column .
principalTable
string
The table that contains the column this foreign key references. Schema name is optional,
if no schema is specified then dbo is assumed.
The table that contains the column this foreign key references . Schema name is optional if no schema is specified then dbo is assumed .
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 " } ' .