SqlServerMigrationSqlGenerator.Statement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Statement(String, Boolean) |
Adds a new Statement to be executed against the database. |
Statement(IndentedTextWriter) |
Adds a new Statement to be executed against the database. |
Statement(String, Boolean)
Adds a new Statement to be executed against the database.
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)
Parameters
- sql
- String
The statement to be executed.
- suppressTransaction
- Boolean
Gets or sets a value indicating whether this statement should be performed outside of the transaction scope that is used to make the migration process transactional. If set to true, this operation will not be rolled back if the migration process fails.
Applies to
Statement(IndentedTextWriter)
Adds a new Statement to be executed against the database.
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)
Parameters
- writer
- IndentedTextWriter
The writer containing the SQL to be executed.
Applies to
Entity Framework