DropPrimaryKeyOperation(Object) 构造函数

定义

初始化 DropPrimaryKeyOperation 类的新实例。 还应填充 Table 和 Columns 属性。

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

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

参数

anonymousArguments
Object

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

属性

适用于