共用方式為


SqlServerMigrationSqlGenerator.Statement 方法

定義

多載

Statement(IndentedTextWriter, String)

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

Statement(String, Boolean, String)

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

Statement(IndentedTextWriter, String)

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected void Statement(System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, string batchTerminator = null);
member this.Statement : System.Data.Entity.Migrations.Utilities.IndentedTextWriter * string -> unit
Protected Sub Statement (writer As IndentedTextWriter, Optional batchTerminator As String = null)

參數

writer
IndentedTextWriter

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

batchTerminator
String

資料庫提供者的批次結束字元。

屬性

適用於

Statement(String, Boolean, String)

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected void Statement(string sql, bool suppressTransaction = false, string batchTerminator = null);
member this.Statement : string * bool * string -> unit
Protected Sub Statement (sql As String, Optional suppressTransaction As Boolean = false, Optional batchTerminator As String = null)

參數

sql
String

要執行的語句。

suppressTransaction
Boolean

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

batchTerminator
String

資料庫提供者的批次結束字元。

屬性

適用於