src/Shared/EntityFramework/Migrations/DbMigration.cs
/// <summary>
/// Adds an operation to alter the definition of an existing column.
///
/// 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 name of the table the column exists in. Schema name is optional, if no schema is specified
/// then dbo is assumed.
/// </param>
/// <param name="name"> The name of the column to be changed. </param>
/// <param name="columnAction">
/// An action that specifies the new definition for the column. i.e. c => c.String(nullable:
/// false, defaultValue: "none")
/// </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 alter the definition of an existing column.

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 alter the definition of an existing column . 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 AlterColumn(
           string table, string name, Func<ColumnBuilder, ColumnModel> columnAction, object anonymousArguments = null)
        {
            Check.NotEmpty(table, "table");
            Check.NotEmpty(name, "name");
            Check.NotNull(columnAction, "columnAction");
            var columnModel = columnAction(new ColumnBuilder());
            columnModel.Name = name;
            AddOperation(
                new AlterColumnOperation(
                    table, columnModel, isDestructiveChange: false, anonymousArguments: anonymousArguments));
        }
[ SuppressMessage ( " " , " " ) ] protected internal void AlterColumn ( string table , string name , Func < ColumnBuilder , ColumnModel > columnAction , object anonymousArguments = null ) { Check . NotEmpty ( table , " " ) ; Check . NotEmpty ( name , " " ) ; Check . NotNull ( columnAction , " " ) ; var columnModel = columnAction ( new ColumnBuilder ( ) ) ; columnModel . Name = name ; AddOperation ( new AlterColumnOperation ( table , columnModel , isDestructiveChange : false , anonymousArguments : anonymousArguments ) ) ; }
Adds an operation to alter the definition of an existing column.
Adds an operation to alter the definition of an existing column .
table
string
The name of the table the column exists in. Schema name is optional, if no schema is specified
then dbo is assumed.
The name of the table the column exists in . Schema name is optional if no schema is specified then dbo is assumed .
name
string
The name of the column to be changed.
The name of the column to be changed .
columnAction
Func<ColumnBuilder, ColumnModel>
An action that specifies the new definition for the column. i.e. c => c.String(nullable:
false, defaultValue: "none")
An action that specifies the new definition for the column . i . e . c = > c . String ( nullable : false defaultValue : " none " )
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 " } ' .