AlterColumnOperation Constructors

Definition

Overloads

AlterColumnOperation(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(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.

AlterColumnOperation(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.

C#
public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, object anonymousArguments = null);
C#
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, object anonymousArguments = null);

Parameters

table
String

The name of the table that the column belongs to.

column
ColumnModel

Details of what the column should be altered to.

isDestructiveChange
Boolean

Value indicating if this change will result in data loss.

anonymousArguments
Object

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

Attributes

Applies to

Entity Framework 6.2.0 och andra versioner
Produkt Versioner
Entity Framework 4.3.1, 5.0.0, 6.2.0

AlterColumnOperation(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.

C#
public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, System.Data.Entity.Migrations.Model.AlterColumnOperation inverse, object anonymousArguments = null);
C#
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, System.Data.Entity.Migrations.Model.AlterColumnOperation inverse, object anonymousArguments = null);

Parameters

table
String

The name of the table that the column belongs to.

column
ColumnModel

Details of what the column should be altered to.

isDestructiveChange
Boolean

Value indicating if this change will result in data loss.

inverse
AlterColumnOperation

An operation to revert this alteration of the column.

anonymousArguments
Object

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

Attributes

Applies to

Entity Framework 6.2.0 och andra versioner
Produkt Versioner
Entity Framework 4.3.1, 5.0.0, 6.2.0