SqlServerMigrationSqlGenerator::DropDefaultConstraint Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

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