语言

DropTableOperation 构造函数

定义

重载

名称 说明
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” }'。

特性

适用于