語言

SqlServerMigrationSqlGenerator.Statement 方法

定義

多載

名稱 Description
Statement(String, Boolean)

新增一個新的 Statement,要對資料庫執行。

Statement(IndentedTextWriter)

新增一個新的 Statement,要對資料庫執行。

Statement(String, Boolean)

新增一個新的 Statement,要對資料庫執行。

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)

新增一個新的 Statement,要對資料庫執行。

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。

適用於