Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SqlServerMigrationSqlGenerator::DropDefaultConstraint Method (String^, String^, IndentedTextWriter^)

Entity Framework 6.0
 

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)

public protected:
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.

Return to top
Show: