SqlServerMigrationsSqlGenerator.DropDefaultConstraint 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.
Generates a SQL fragment to drop default constraints for a column.
protected virtual void DropDefaultConstraint (string schema, string tableName, string columnName, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void DropDefaultConstraint (string? schema, string tableName, string columnName, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member DropDefaultConstraint : string * string * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.DropDefaultConstraint : string * string * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub DropDefaultConstraint (schema As String, tableName As String, columnName As String, builder As MigrationCommandListBuilder)
Parameters
- schema
- String
The schema that contains the table.
- tableName
- String
The table that contains the column.
- columnName
- String
The column.
- builder
- MigrationCommandListBuilder
The command builder to use to add the SQL fragment.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework