SqlServerMigrationSqlGenerator.DropDefaultConstraint 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
呼叫此方法產生 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 應該寫給寫入者。