Share via


SqlCeMigrationSqlGenerator.Statement Method

Definition

Overloads

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.

Statement(IndentedTextWriter)

Adds a new Statement to be executed against the database.

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

Parameters

writer
IndentedTextWriter

The writer containing the SQL to be executed.

Attributes

Applies to

Statement(String, Boolean)

Adds a new Statement to be executed against the database.

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

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.

Attributes

Applies to