Interface IExecuteBuilder
Builds and executes an Sql statement.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Execute
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IExecuteBuilder : IFluentBuilder
Remarks
Deals with multi-statements Sql.
Methods
View SourceSql(Sql<ISqlContext>)
Specifies the SQL statement to execute as part of a migration.
Declaration
IExecutableBuilder Sql(Sql<ISqlContext> sql)
Parameters
| Type | Name | Description |
|---|---|---|
| Sql<ISqlContext> | sql | The SQL statement to execute. |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder | An IExecutableBuilder that allows further configuration of the migration step. |
Sql(string)
Specifies the SQL statement to be executed as part of the migration.
Declaration
IExecutableBuilder Sql(string sqlStatement)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sqlStatement | The SQL statement to execute. |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder | An IExecutableBuilder that can be used to continue building the execution. |