DropColumnOperation 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DropColumnOperation(String, String, Object) |
初始化 DropColumnOperation 类的新实例。 实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。 |
DropColumnOperation(String, String, IDictionary<String,Object>, Object) |
初始化 DropColumnOperation 类的新实例。 实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。 |
DropColumnOperation(String, String, AddColumnOperation, Object) |
初始化 DropColumnOperation 类的新实例。 实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。 |
DropColumnOperation(String, String, IDictionary<String,Object>, AddColumnOperation, Object) |
初始化 DropColumnOperation 类的新实例。 实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。 |
DropColumnOperation(String, String, Object)
初始化 DropColumnOperation 类的新实例。
实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。
public DropColumnOperation (string table, string name, object anonymousArguments = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public DropColumnOperation (string table, string name, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.DropColumnOperation : string * string * obj -> System.Data.Entity.Migrations.Model.DropColumnOperation
Public Sub New (table As String, name As String, Optional anonymousArguments As Object = null)
参数
- table
- String
应从中删除列的表的名称。
- name
- String
要删除的列的名称。
- anonymousArguments
- Object
提供程序可能处理的其他参数。 使用匿名类型语法指定参数,例如“new { SampleArgument = ”MyValue“ }”。
- 属性
适用于
DropColumnOperation(String, String, IDictionary<String,Object>, Object)
初始化 DropColumnOperation 类的新实例。
实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public DropColumnOperation (string table, string name, System.Collections.Generic.IDictionary<string,object> removedAnnotations, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.DropColumnOperation : string * string * System.Collections.Generic.IDictionary<string, obj> * obj -> System.Data.Entity.Migrations.Model.DropColumnOperation
Public Sub New (table As String, name As String, removedAnnotations As IDictionary(Of String, Object), Optional anonymousArguments As Object = null)
参数
- table
- String
应从中删除列的表的名称。
- name
- String
要删除的列的名称。
- removedAnnotations
- IDictionary<String,Object>
正在删除的列上存在的自定义批注。 可以为 null 或空。
- anonymousArguments
- Object
提供程序可能处理的其他参数。 使用匿名类型语法指定参数,例如“new { SampleArgument = ”MyValue“ }”。
- 属性
适用于
DropColumnOperation(String, String, AddColumnOperation, Object)
初始化 DropColumnOperation 类的新实例。
实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。
public DropColumnOperation (string table, string name, System.Data.Entity.Migrations.Model.AddColumnOperation inverse, object anonymousArguments = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public DropColumnOperation (string table, string name, System.Data.Entity.Migrations.Model.AddColumnOperation inverse, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.DropColumnOperation : string * string * System.Data.Entity.Migrations.Model.AddColumnOperation * obj -> System.Data.Entity.Migrations.Model.DropColumnOperation
Public Sub New (table As String, name As String, inverse As AddColumnOperation, Optional anonymousArguments As Object = null)
参数
- table
- String
应从中删除列的表的名称。
- name
- String
要删除的列的名称。
- inverse
- AddColumnOperation
表示还原放置操作的操作。
- anonymousArguments
- Object
提供程序可能处理的其他参数。 使用匿名类型语法指定参数,例如“new { SampleArgument = ”MyValue“ }”。
- 属性
适用于
DropColumnOperation(String, String, IDictionary<String,Object>, AddColumnOperation, Object)
初始化 DropColumnOperation 类的新实例。
实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public DropColumnOperation (string table, string name, System.Collections.Generic.IDictionary<string,object> removedAnnotations, System.Data.Entity.Migrations.Model.AddColumnOperation inverse, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.DropColumnOperation : string * string * System.Collections.Generic.IDictionary<string, obj> * System.Data.Entity.Migrations.Model.AddColumnOperation * obj -> System.Data.Entity.Migrations.Model.DropColumnOperation
Public Sub New (table As String, name As String, removedAnnotations As IDictionary(Of String, Object), inverse As AddColumnOperation, Optional anonymousArguments As Object = null)
参数
- table
- String
应从中删除列的表的名称。
- name
- String
要删除的列的名称。
- removedAnnotations
- IDictionary<String,Object>
正在删除的列上存在的自定义批注。 可以为 null 或空。
- inverse
- AddColumnOperation
表示还原放置操作的操作。
- anonymousArguments
- Object
提供程序可能处理的其他参数。 使用匿名类型语法指定参数,例如“new { SampleArgument = ”MyValue“ }”。
- 属性