Share via


SqlServerMigrationSqlGenerator.Statement Method

Definition

Overloads

Statement(IndentedTextWriter, String)

Adds a new Statement to be executed against the database.

Statement(String, Boolean, String)

Adds a new Statement to be executed against the database.

Statement(IndentedTextWriter, String)

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

Parameters

writer
IndentedTextWriter

The writer containing the SQL to be executed.

batchTerminator
String

The batch terminator for the database provider.

Attributes

Applies to

Statement(String, Boolean, String)

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

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.

batchTerminator
String

The batch terminator for the database provider.

Attributes

Applies to