Class ExecuteEmbeddedSqlScriptExpression
Expression to execute an embedded SQL script
Inheritance
ExecuteEmbeddedSqlScriptExpression
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public sealed class ExecuteEmbeddedSqlScriptExpression : ExecuteEmbeddedSqlScriptExpressionBase, IMigrationExpression, ICanBeValidated
Constructors
| Edit this page View SourceExecuteEmbeddedSqlScriptExpression()
Initializes a new instance of the ExecuteEmbeddedSqlScriptExpression class.
Declaration
[Obsolete]
public ExecuteEmbeddedSqlScriptExpression()
ExecuteEmbeddedSqlScriptExpression(IAssemblyCollection)
Initializes a new instance of the ExecuteEmbeddedSqlScriptExpression class.
Declaration
[Obsolete]
public ExecuteEmbeddedSqlScriptExpression(IAssemblyCollection assemblyCollection)
Parameters
Type | Name | Description |
---|---|---|
IAssemblyCollection | assemblyCollection | The collection of assemblies to be searched for the resources |
ExecuteEmbeddedSqlScriptExpression(IEnumerable<IEmbeddedResourceProvider>)
Initializes a new instance of the ExecuteEmbeddedSqlScriptExpression class.
Declaration
public ExecuteEmbeddedSqlScriptExpression(IEnumerable<IEmbeddedResourceProvider> embeddedResourceProviders)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IEmbeddedResourceProvider> | embeddedResourceProviders | The embedded resource providers |
Properties
| Edit this page View SourceMigrationAssemblies
Gets or sets the migration assemblies
Declaration
[Obsolete]
[CanBeNull]
public IAssemblyCollection MigrationAssemblies { get; set; }
Property Value
Type | Description |
---|---|
IAssemblyCollection |
SqlScript
Gets or sets the SQL script name
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 |