Condividi tramite


SqlServerMigrationsSqlGenerator.DropDefaultConstraint Metodo

Definizione

Genera un frammento SQL per eliminare i vincoli predefiniti per una colonna.

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)

Parametri

schema
String

Schema contenente la tabella.

tableName
String

Tabella che contiene la colonna.

columnName
String

Colonna.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per aggiungere il frammento SQL.

Si applica a