Sdílet prostřednictvím


SqlServerMigrationsSqlGenerator.DropDefaultConstraint Metoda

Definice

Vygeneruje fragment SQL pro odstranění výchozích omezení pro sloupec.

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)

Parametry

schema
String

Schéma, které obsahuje tabulku.

tableName
String

Tabulka, která obsahuje sloupec.

columnName
String

Sloupec.

builder
MigrationCommandListBuilder

Tvůrce příkazů, který se má použít k přidání fragmentu SQL.

Platí pro