MigrationBuilder.DropCheckConstraint(String, String, String) 方法

定义

生成 以DropCheckConstraintOperation删除现有检查约束。

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation> DropCheckConstraint (string name, string table, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation> DropCheckConstraint (string name, string table, string? schema = default);
abstract member DropCheckConstraint : string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation>
override this.DropCheckConstraint : string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation>
Public Overridable Function DropCheckConstraint (name As String, table As String, Optional schema As String = Nothing) As OperationBuilder(Of DropCheckConstraintOperation)

参数

name
String

要删除检查约束的名称。

table
String

要删除检查约束的表的名称。

schema
String

包含检查约束的架构,或使用null默认架构。

返回

允许将批注添加到操作的生成器。

注解

有关详细信息和示例 ,请参阅数据库迁移

适用于