AlterColumnOperation Constructor

 

Initializes a new instance of the AlterColumnOperation class.

Namespace:   System.Data.Entity.Migrations.Model
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodAlterColumnOperation(String, ColumnModel, Boolean, AlterColumnOperation, Object)

Initializes a new instance of the AlterColumnOperation class. 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.

System_CAPS_pubmethodAlterColumnOperation(String, ColumnModel, Boolean, Object)

Initializes a new instance of the AlterColumnOperation class. 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.


AlterColumnOperation Constructor (String, ColumnModel, Boolean, AlterColumnOperation, Object)

Initializes a new instance of the AlterColumnOperation class. 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.

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public AlterColumnOperation(
	string table,
	ColumnModel column,
	bool isDestructiveChange,
	AlterColumnOperation inverse,
	object anonymousArguments = null
)

Parameters

table
Type: System.String

The name of the table that the column belongs to.

column
Type: System.Data.Entity.Migrations.Model.ColumnModel

Details of what the column should be altered to.

isDestructiveChange
Type: System.Boolean

Value indicating if this change will result in data loss.

inverse
Type: System.Data.Entity.Migrations.Model.AlterColumnOperation

An operation to revert this alteration of the column.

anonymousArguments
Type: System.Object

Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.


AlterColumnOperation Constructor (String, ColumnModel, Boolean, Object)

Initializes a new instance of the AlterColumnOperation class. 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.

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public AlterColumnOperation(
	string table,
	ColumnModel column,
	bool isDestructiveChange,
	object anonymousArguments = null
)

Parameters

table
Type: System.String

The name of the table that the column belongs to.

column
Type: System.Data.Entity.Migrations.Model.ColumnModel

Details of what the column should be altered to.

isDestructiveChange
Type: System.Boolean

Value indicating if this change will result in data loss.

anonymousArguments
Type: System.Object

Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.