DbMigration.DropTable 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| DropTable(String, Object) |
添加用于删除表的操作。 实体框架迁移 API 不设计为接受不受信任的源提供的输入(例如应用程序的最终用户)。 如果从此类源接受输入,则应在传递给这些 API 之前对其进行验证,以防止 SQL 注入攻击等。 |
| DropTable(String, IDictionary<String,IDictionary<String,Object>>, Object) |
添加用于删除表的操作。 实体框架迁移 API 不设计为接受不受信任的源提供的输入(例如应用程序的最终用户)。 如果从此类源接受输入,则应在传递给这些 API 之前对其进行验证,以防止 SQL 注入攻击等。 |
| DropTable(String, IDictionary<String,Object>, Object) |
添加用于删除表的操作。 实体框架迁移 API 不设计为接受不受信任的源提供的输入(例如应用程序的最终用户)。 如果从此类源接受输入,则应在传递给这些 API 之前对其进行验证,以防止 SQL 注入攻击等。 |
| DropTable(String, IDictionary<String,Object>, IDictionary<String,IDictionary<String,Object>>, Object) |
添加用于删除表的操作。 实体框架迁移 API 不设计为接受不受信任的源提供的输入(例如应用程序的最终用户)。 如果从此类源接受输入,则应在传递给这些 API 之前对其进行验证,以防止 SQL 注入攻击等。 |
DropTable(String, Object)
添加用于删除表的操作。
实体框架迁移 API 不设计为接受不受信任的源提供的输入(例如应用程序的最终用户)。 如果从此类源接受输入,则应在传递给这些 API 之前对其进行验证,以防止 SQL 注入攻击等。
protected internal void DropTable(string name, object anonymousArguments = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable(string name, object anonymousArguments = null);
member this.DropTable : string * obj -> unit
Protected Friend Sub DropTable (name As String, Optional anonymousArguments As Object = null)
参数
- name
- String
要删除的表的名称。 架构名称是可选的,如果未指定架构,则假定 dbo。
- anonymousArguments
- Object
可由提供程序处理的其他参数。 使用匿名类型语法指定参数,例如'new { SampleArgument = “MyValue” }'。
- 特性
适用于
DropTable(String, IDictionary<String,IDictionary<String,Object>>, Object)
添加用于删除表的操作。
实体框架迁移 API 不设计为接受不受信任的源提供的输入(例如应用程序的最终用户)。 如果从此类源接受输入,则应在传递给这些 API 之前对其进行验证,以防止 SQL 注入攻击等。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable(string name, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IDictionary<string,object>> removedColumnAnnotations, object anonymousArguments = null);
member this.DropTable : string * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IDictionary<string, obj>> * obj -> unit
Protected Friend Sub DropTable (name As String, removedColumnAnnotations As IDictionary(Of String, IDictionary(Of String, Object)), Optional anonymousArguments As Object = null)
参数
- name
- String
要删除的表的名称。 架构名称是可选的,如果未指定架构,则假定 dbo。
- removedColumnAnnotations
- IDictionary<String,IDictionary<String,Object>>
正在删除的表列上存在的自定义批注。 可以为 null 或为空。
- anonymousArguments
- Object
可由提供程序处理的其他参数。 使用匿名类型语法指定参数,例如'new { SampleArgument = “MyValue” }'。
- 特性
适用于
DropTable(String, IDictionary<String,Object>, Object)
添加用于删除表的操作。
实体框架迁移 API 不设计为接受不受信任的源提供的输入(例如应用程序的最终用户)。 如果从此类源接受输入,则应在传递给这些 API 之前对其进行验证,以防止 SQL 注入攻击等。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable(string name, System.Collections.Generic.IDictionary<string,object> removedAnnotations, object anonymousArguments = null);
member this.DropTable : string * System.Collections.Generic.IDictionary<string, obj> * obj -> unit
Protected Friend Sub DropTable (name As String, removedAnnotations As IDictionary(Of String, Object), Optional anonymousArguments As Object = null)
参数
- name
- String
要删除的表的名称。 架构名称是可选的,如果未指定架构,则假定 dbo。
- removedAnnotations
- IDictionary<String,Object>
正在删除的表上存在的自定义批注。 可以为 null 或为空。
- anonymousArguments
- Object
可由提供程序处理的其他参数。 使用匿名类型语法指定参数,例如'new { SampleArgument = “MyValue” }'。
- 特性
适用于
DropTable(String, IDictionary<String,Object>, IDictionary<String,IDictionary<String,Object>>, Object)
添加用于删除表的操作。
实体框架迁移 API 不设计为接受不受信任的源提供的输入(例如应用程序的最终用户)。 如果从此类源接受输入,则应在传递给这些 API 之前对其进行验证,以防止 SQL 注入攻击等。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable(string name, System.Collections.Generic.IDictionary<string,object> removedAnnotations, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IDictionary<string,object>> removedColumnAnnotations, object anonymousArguments = null);
member this.DropTable : string * System.Collections.Generic.IDictionary<string, obj> * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IDictionary<string, obj>> * obj -> unit
Protected Friend Sub DropTable (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
要删除的表的名称。 架构名称是可选的,如果未指定架构,则假定 dbo。
- removedAnnotations
- IDictionary<String,Object>
正在删除的表上存在的自定义批注。 可以为 null 或为空。
- removedColumnAnnotations
- IDictionary<String,IDictionary<String,Object>>
正在删除的表列上存在的自定义批注。 可以为 null 或为空。
- anonymousArguments
- Object
可由提供程序处理的其他参数。 使用匿名类型语法指定参数,例如'new { SampleArgument = “MyValue” }'。
- 特性