SqlServerMigrationSqlGenerator.Statement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 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
資料庫提供者的批次結束字元。
- 屬性