共用方式為


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 預設架構。

傳回

建置器,允許將批註新增至作業。

備註

如需詳細資訊和範例 ,請參閱資料庫移 轉。

適用於