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