SqlServerMigrationSqlGenerator.Statement Method

Definition

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