src/Shared/EntityFramework/Migrations/DbMigration.cs
/// <summary>
/// Adds an operation to drop an existing primary key that does not have the default 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="table">
/// The table that contains the primary key column. Schema name is optional, if no schema is specified
/// then dbo is assumed.
/// </param>
/// <param name="name"> The name of the primary key to be dropped. </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 an existing primary key that does not have the default 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 an existing primary key that does not have the default 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 DropPrimaryKey(string table, string name, object anonymousArguments = null)
        {
            Check.NotEmpty(table, "table");
            Check.NotEmpty(name, "name");
            var dropPrimaryKeyOperation
                = new DropPrimaryKeyOperation(anonymousArguments)
                  {
                      Table = table,
                      Name = name,
                  };
            AddOperation(dropPrimaryKeyOperation);
        }
[ SuppressMessage ( " " , " " ) ] protected internal void DropPrimaryKey ( string table , string name , object anonymousArguments = null ) { Check . NotEmpty ( table , " " ) ; Check . NotEmpty ( name , " " ) ; var dropPrimaryKeyOperation = new DropPrimaryKeyOperation ( anonymousArguments ) { Table = table , Name = name , } ; AddOperation ( dropPrimaryKeyOperation ) ; }
Adds an operation to drop an existing primary key that does not have the default name.
Adds an operation to drop an existing primary key that does not have the default name .
table
string
The table that contains the primary key column. Schema name is optional, if no schema is specified
then dbo is assumed.
The table that contains the primary key column . Schema name is optional if no schema is specified then dbo is assumed .
name
string
The name of the primary key to be dropped.
The name of the primary key to be dropped .
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 " } ' .