SqlServerMigrationSqlGenerator.DropDefaultConstraint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework