SqlServerMigrationSqlGenerator.DropDefaultConstraint Method

Definition

Call this method to generate SQL that will attempt to drop the default constraint created when a column is created. This method is usually called by code that overrides the creation or altering of columns.

protected internal virtual void DropDefaultConstraint (string table, string column, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
abstract member DropDefaultConstraint : string * string * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
override this.DropDefaultConstraint : string * string * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
Protected Friend Overridable Sub DropDefaultConstraint (table As String, column As String, writer As IndentedTextWriter)

Parameters

table
String

The table to which the constraint applies.

column
String

The column to which the constraint applies.

writer
IndentedTextWriter

The writer to which generated SQL should be written.

Applies to