SqlServerMigrationSqlGenerator.StatementBatch Method (String, Boolean)

 

Breaks sql string into one or more statements, handling T-SQL utility statements as necessary.

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected void StatementBatch(
	string sqlBatch,
	bool suppressTransaction = false
)

Parameters

sqlBatch
Type: System.String

The SQL to split into one ore more statements to be executed.

suppressTransaction
Type: System.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.