SqlServerMigrationSqlGenerator.DropDefaultConstraint Method (String, String, IndentedTextWriter)

 

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.

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

protected internal virtual void DropDefaultConstraint(
	string table,
	string column,
	IndentedTextWriter writer
)

Parameters

table
Type: System.String

The table to which the constraint applies.

column
Type: System.String

The column to which the constraint applies.

writer
Type: System.Data.Entity.Migrations.Utilities.IndentedTextWriter

The writer to which generated SQL should be written.