共用方式為


SqlServerMigrationSqlGenerator.Statement 方法

定義

多載

Statement(String, Boolean)

加入要針對資料庫執行的新語句。

Statement(IndentedTextWriter)

加入要針對資料庫執行的新語句。

Statement(String, Boolean)

加入要針對資料庫執行的新語句。

protected void Statement (string sql, bool suppressTransaction = false);
member this.Statement : string * bool -> unit
Protected Sub Statement (sql As String, Optional suppressTransaction As Boolean = false)

參數

sql
String

要執行的語句。

suppressTransaction
Boolean

取得或設定值,指出這個語句是否應該在用於進行移轉程式的交易範圍之外執行。 如果設定為 true,則如果移轉程式失敗,將不會回復此作業。

適用於

Statement(IndentedTextWriter)

加入要針對資料庫執行的新語句。

protected void Statement (System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
member this.Statement : System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
Protected Sub Statement (writer As IndentedTextWriter)

參數

writer
IndentedTextWriter

包含要執行之 SQL 的寫入器。

適用於