DropColumnOperation Constructor
Initializes a new instance of the DropColumnOperation class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | DropColumnOperation(String, String, AddColumnOperation, Object) | Initializes a new instance of the DropColumnOperation 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. |
![]() | DropColumnOperation(String, String, IDictionary<String, Object>, AddColumnOperation, Object) | Initializes a new instance of the DropColumnOperation 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. |
![]() | DropColumnOperation(String, String, IDictionary<String, Object>, Object) | Initializes a new instance of the DropColumnOperation 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. |
![]() | DropColumnOperation(String, String, Object) | Initializes a new instance of the DropColumnOperation 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. |
DropColumnOperation Constructor (String, String, AddColumnOperation, Object)
Initializes a new instance of the DropColumnOperation 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 DropColumnOperation( string table, string name, AddColumnOperation inverse, object anonymousArguments = null )
Parameters
- table
-
Type:
System.String
The name of the table the column should be dropped from.
- name
-
Type:
System.String
The name of the column to be dropped.
- inverse
-
Type:
System.Data.Entity.Migrations.Model.AddColumnOperation
The operation that represents reverting the drop operation.
- anonymousArguments
-
Type:
System.Object
Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.
DropColumnOperation Constructor (String, String, IDictionary<String, Object>, AddColumnOperation, Object)
Initializes a new instance of the DropColumnOperation 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 DropColumnOperation( string table, string name, IDictionary<string, object> removedAnnotations, AddColumnOperation inverse, object anonymousArguments = null )
Parameters
- table
-
Type:
System.String
The name of the table the column should be dropped from.
- name
-
Type:
System.String
The name of the column to be dropped.
- removedAnnotations
-
Type:
System.Collections.Generic.IDictionary<String, Object>
Custom annotations that exist on the column that is being dropped. May be null or empty.
- inverse
-
Type:
System.Data.Entity.Migrations.Model.AddColumnOperation
The operation that represents reverting the drop operation.
- anonymousArguments
-
Type:
System.Object
Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.
DropColumnOperation Constructor (String, String, IDictionary<String, Object>, Object)
Initializes a new instance of the DropColumnOperation 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 DropColumnOperation( string table, string name, IDictionary<string, object> removedAnnotations, object anonymousArguments = null )
Parameters
- table
-
Type:
System.String
The name of the table the column should be dropped from.
- name
-
Type:
System.String
The name of the column to be dropped.
- removedAnnotations
-
Type:
System.Collections.Generic.IDictionary<String, Object>
Custom annotations that exist on the column that is being dropped. May be null or empty.
- anonymousArguments
-
Type:
System.Object
Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.
DropColumnOperation Constructor (String, String, Object)
Initializes a new instance of the DropColumnOperation 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 DropColumnOperation( string table, string name, object anonymousArguments = null )
Parameters
- table
-
Type:
System.String
The name of the table the column should be dropped from.
- name
-
Type:
System.String
The name of the column to be dropped.
- anonymousArguments
-
Type:
System.Object
Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.