AlterColumnOperation Constructor
Initializes a new instance of the AlterColumnOperation class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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. |
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" }'.