Partilhar via


SqlServerMigrationsSqlGenerator.DropDefaultConstraint Método

Definição

Gera um fragmento SQL para remover restrições padrão para uma coluna.

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)

Parâmetros

schema
String

O esquema que contém a tabela.

tableName
String

A tabela que contém a coluna.

columnName
String

A coluna.

builder
MigrationCommandListBuilder

O construtor de comandos a ser usado para adicionar o fragmento SQL.

Aplica-se a