AlterColumnOperation Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, object anonymousArguments = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.AlterColumnOperation : string * System.Data.Entity.Migrations.Model.ColumnModel * bool * obj -> System.Data.Entity.Migrations.Model.AlterColumnOperation
Public Sub New (table As String, column As ColumnModel, isDestructiveChange As Boolean, Optional anonymousArguments As Object = 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
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.
public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, System.Data.Entity.Migrations.Model.AlterColumnOperation inverse, object anonymousArguments = null);
[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);
new System.Data.Entity.Migrations.Model.AlterColumnOperation : string * System.Data.Entity.Migrations.Model.ColumnModel * bool * System.Data.Entity.Migrations.Model.AlterColumnOperation * obj -> System.Data.Entity.Migrations.Model.AlterColumnOperation
Public Sub New (table As String, column As ColumnModel, isDestructiveChange As Boolean, inverse As AlterColumnOperation, Optional anonymousArguments As Object = 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