SqlServerMigrationsSqlGenerator.DropDefaultConstraint Method

Definition

Overloads

Name Description
DropDefaultConstraint(String, String, String, MigrationCommandListBuilder)

Generates a SQL fragment to drop default constraints for a column.

DropDefaultConstraint(String, String, String, String, MigrationCommandListBuilder)

Generates a SQL fragment to drop default constraints for a column.

DropDefaultConstraint(String, String, String, MigrationCommandListBuilder)

Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs

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

DropDefaultConstraint(String, String, String, String, MigrationCommandListBuilder)

Source:
SqlServerMigrationsSqlGenerator.cs

Generates a SQL fragment to drop default constraints for a column.

protected virtual void DropDefaultConstraint(string? schema, string tableName, string columnName, string? defaultConstraintName, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member DropDefaultConstraint : string * string * string * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.DropDefaultConstraint : string * string * string * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub DropDefaultConstraint (schema As String, tableName As String, columnName As String, defaultConstraintName 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.

defaultConstraintName
String

The name of the default constraint.

builder
MigrationCommandListBuilder

The command builder to use to add the SQL fragment.

Applies to