语言

DropColumnOperation 构造函数

定义

重载

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

特性

适用于