SqlCeMigrationSqlGenerator.Statement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Statement(IndentedTextWriter) |
新增一個新的 Statement,要對資料庫執行。 |
| Statement(String, Boolean) |
新增一個新的 Statement,要對資料庫執行。 |
Statement(IndentedTextWriter)
新增一個新的 Statement,要對資料庫執行。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
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。
- 屬性
適用於
Statement(String, Boolean)
新增一個新的 Statement,要對資料庫執行。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
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,遷移過程失敗時此操作不會被回滾。
- 屬性