SqlCeMigrationSqlGenerator.Statement Method
Adds a new Statement to be executed against the database.
Assembly: EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)
Name | Description | |
---|---|---|
![]() | 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. |
SqlCeMigrationSqlGenerator.Statement Method (IndentedTextWriter)
Adds a new Statement to be executed against the database.
[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")] protected void Statement( IndentedTextWriter writer )
Parameters
- writer
-
Type:
System.Data.Entity.Migrations.Utilities.IndentedTextWriter
The writer containing the SQL to be executed.
SqlCeMigrationSqlGenerator.Statement Method (String, Boolean)
Adds a new Statement to be executed against the database.
[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")] protected void Statement( string sql, bool suppressTransaction = false )
Parameters
- sql
-
Type:
System.String
The statement 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.