语言

DropForeignKeyOperation 构造函数

定义

重载

名称 说明
DropForeignKeyOperation(Object)

初始化 DropForeignKeyOperation 类的新实例。 还应填充 PrincipalTable、DependentTable 和 DependentColumns 属性。

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

DropForeignKeyOperation(AddForeignKeyOperation, Object)

初始化 DropForeignKeyOperation 类的新实例。

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

DropForeignKeyOperation(Object)

初始化 DropForeignKeyOperation 类的新实例。 还应填充 PrincipalTable、DependentTable 和 DependentColumns 属性。

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

public DropForeignKeyOperation(object anonymousArguments = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public DropForeignKeyOperation(object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.DropForeignKeyOperation : obj -> System.Data.Entity.Migrations.Model.DropForeignKeyOperation
Public Sub New (Optional anonymousArguments As Object = null)

参数

anonymousArguments
Object

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

特性

适用于

DropForeignKeyOperation(AddForeignKeyOperation, Object)

初始化 DropForeignKeyOperation 类的新实例。

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

public DropForeignKeyOperation(System.Data.Entity.Migrations.Model.AddForeignKeyOperation inverse, object anonymousArguments = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public DropForeignKeyOperation(System.Data.Entity.Migrations.Model.AddForeignKeyOperation inverse, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.DropForeignKeyOperation : System.Data.Entity.Migrations.Model.AddForeignKeyOperation * obj -> System.Data.Entity.Migrations.Model.DropForeignKeyOperation
Public Sub New (inverse As AddForeignKeyOperation, Optional anonymousArguments As Object = null)

参数

inverse
AddForeignKeyOperation

表示还原删除外键约束的操作。

anonymousArguments
Object

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

特性

适用于