src/Shared/EntityFramework/Migrations/DbMigration.cs
/// <summary>
/// Adds an operation to create a new primary key.
///
/// 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="column"> The primary key column. </param>
/// <param name="name">
/// The name of the primary key in the database. If no value is supplied a unique name will be
/// generated.
/// </param>
/// <param name="clustered"> A value indicating whether or not this is a clustered primary key. </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 create a new primary key.

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 create a new primary key . 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 AddPrimaryKey(
            string table,
            string column,
            string name = null,
            bool clustered = true,
            object anonymousArguments = null)
        {
            Check.NotEmpty(table, "table");
            Check.NotEmpty(column, "column");
            AddPrimaryKey(table, new[] { column }, name, clustered, anonymousArguments);
        }
[ SuppressMessage ( " " , " " ) ] protected internal void AddPrimaryKey ( string table , string column , string name = null , bool clustered = true , object anonymousArguments = null ) { Check . NotEmpty ( table , " " ) ; Check . NotEmpty ( column , " " ) ; AddPrimaryKey ( table , new [ ] { column } , name , clustered , anonymousArguments ) ; }
Adds an operation to create a new primary key.
Adds an operation to create a new primary key .
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 .
column
string
The primary key column.
The primary key column .
name
string
The name of the primary key in the database. If no value is supplied a unique name will be
generated.
The name of the primary key in the database . If no value is supplied a unique name will be generated .
clustered
bool
A value indicating whether or not this is a clustered primary key.
A value indicating whether or not this is a clustered primary key .
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 " } ' .