MigrationBuilder.DropCheckConstraint(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Builds a DropCheckConstraintOperation to drop an existing check constraint.
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)
Parameters
- name
- String
The name of the check constraint to drop.
- table
- String
The name of the table for the check constraint to drop.
- schema
- String
The schema that contains the check constraint, or null
to use the default schema.
Returns
A builder to allow annotations to be added to the operation.
Remarks
See Database migrations for more information and examples.
Applies to
Entity Framework