Class ExecuteSqlStatementExpression
Expression to execute an SQL statement
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class ExecuteSqlStatementExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated
Properties
| Edit this page View SourceDescription
Gets or sets the description for this SQL statement
Declaration
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
SqlStatement
Gets or sets the SQL statement to be executed
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "SqlStatementCannotBeNullOrEmpty")]
public virtual string SqlStatement { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceExecuteWith(IMigrationProcessor)
Execute the expression with the given processor
Declaration
public override void ExecuteWith(IMigrationProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
IMigrationProcessor | processor | The processor to execute the expression with |
Overrides
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |