SqlServerMigrationsSqlGenerator.DropDefaultConstraint 方法

定义

生成 SQL 片段以删除列的默认约束。

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)

参数

schema
String

包含表的架构。

tableName
String

包含列的表。

columnName
String

列。

builder
MigrationCommandListBuilder

用于添加 SQL 片段的命令生成器。

适用于