語言

SqlServerMigrationSqlGenerator.DropDefaultConstraint 方法

定義

呼叫此方法產生 SQL,嘗試捨棄建立欄位時建立的預設限制。 此方法通常由覆蓋欄位建立或變更的程式碼呼叫。

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)

參數

table
String

該約束適用的表格。

column
String

約束所適用的欄位。

writer
IndentedTextWriter

產生的 SQL 應該寫給寫入者。

適用於