AlterColumnOperation 构造函数

定义

重载

AlterColumnOperation(String, ColumnModel, Boolean, Object)

初始化 AlterColumnOperation 类的新实例。

实体框架迁移 API 不设计为接受不受信任的源 ((例如应用程序的最终用户) )提供的输入。 如果从此类源接受输入,则应在传递到这些 API 之前对其进行验证,以防止 SQL 注入攻击等。

AlterColumnOperation(String, ColumnModel, Boolean, AlterColumnOperation, Object)

初始化 AlterColumnOperation 类的新实例。

实体框架迁移 API 不设计为接受不受信任的源 ((例如应用程序的最终用户) )提供的输入。 如果从此类源接受输入,则应在传递到这些 API 之前对其进行验证,以防止 SQL 注入攻击等。

AlterColumnOperation(String, ColumnModel, Boolean, Object)

初始化 AlterColumnOperation 类的新实例。

实体框架迁移 API 不设计为接受不受信任的源 ((例如应用程序的最终用户) )提供的输入。 如果从此类源接受输入,则应在传递到这些 API 之前对其进行验证,以防止 SQL 注入攻击等。

public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, object anonymousArguments = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.AlterColumnOperation : string * System.Data.Entity.Migrations.Model.ColumnModel * bool * obj -> System.Data.Entity.Migrations.Model.AlterColumnOperation
Public Sub New (table As String, column As ColumnModel, isDestructiveChange As Boolean, Optional anonymousArguments As Object = null)

参数

table
String

列所属的表的名称。

column
ColumnModel

列应更改为的内容的详细信息。

isDestructiveChange
Boolean

指示此更改是否会导致数据丢失的值。

anonymousArguments
Object

提供程序可能处理的其他参数。 使用匿名类型语法指定参数,例如“new { SampleArgument = ”MyValue“ }”。

属性

适用于

AlterColumnOperation(String, ColumnModel, Boolean, AlterColumnOperation, Object)

初始化 AlterColumnOperation 类的新实例。

实体框架迁移 API 不设计为接受不受信任的源 ((例如应用程序的最终用户) )提供的输入。 如果从此类源接受输入,则应在传递到这些 API 之前对其进行验证,以防止 SQL 注入攻击等。

public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, System.Data.Entity.Migrations.Model.AlterColumnOperation inverse, object anonymousArguments = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public AlterColumnOperation (string table, System.Data.Entity.Migrations.Model.ColumnModel column, bool isDestructiveChange, System.Data.Entity.Migrations.Model.AlterColumnOperation inverse, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.AlterColumnOperation : string * System.Data.Entity.Migrations.Model.ColumnModel * bool * System.Data.Entity.Migrations.Model.AlterColumnOperation * obj -> System.Data.Entity.Migrations.Model.AlterColumnOperation
Public Sub New (table As String, column As ColumnModel, isDestructiveChange As Boolean, inverse As AlterColumnOperation, Optional anonymousArguments As Object = null)

参数

table
String

列所属的表的名称。

column
ColumnModel

列应更改为的内容的详细信息。

isDestructiveChange
Boolean

指示此更改是否会导致数据丢失的值。

inverse
AlterColumnOperation

用于还原列的此更改的操作。

anonymousArguments
Object

提供程序可能处理的其他参数。 使用匿名类型语法指定参数,例如“new { SampleArgument = ”MyValue“ }”。

属性

适用于