Class ExecuteSqlScriptExpression
Expression to execute SQL scripts
Inheritance
ExecuteSqlScriptExpression
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class ExecuteSqlScriptExpression : ExecuteSqlScriptExpressionBase, IMigrationExpression, ICanBeValidated, IFileSystemExpression
Properties
| Edit this page View SourceRootPath
Gets or sets the root path where the SQL script file should be loaded from
Declaration
public string RootPath { get; set; }
Property Value
Type | Description |
---|---|
string |
SqlScript
Gets or sets the SQL script to be executed
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "SqlScriptCannotBeNullOrEmpty")]
public string SqlScript { 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 |