語言

SqlServerMigrationSqlGenerator.Statement 方法

定義

多載

名稱 Description
Statement(IndentedTextWriter, String)

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

Statement(String, Boolean, String)

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

Statement(IndentedTextWriter, String)

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

[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)

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

[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

資料庫提供者的批次終止器。

屬性

適用於