Search Results for

    Show / Hide Table of Contents

    Class ExecuteEmbeddedSqlScriptExpression

    Expression to execute an embedded SQL script

    Inheritance
    object
    MigrationExpressionBase
    ExecuteSqlScriptExpressionBase
    ExecuteEmbeddedSqlScriptExpressionBase
    ExecuteEmbeddedSqlScriptExpression
    Implements
    IMigrationExpression
    ICanBeValidated
    Inherited Members
    ExecuteSqlScriptExpressionBase.Parameters
    MigrationExpressionBase.CollectValidationErrors(ICollection<string>)
    MigrationExpressionBase.Reverse()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: FluentMigrator.Expressions
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    public sealed class ExecuteEmbeddedSqlScriptExpression : ExecuteEmbeddedSqlScriptExpressionBase, IMigrationExpression, ICanBeValidated

    Constructors

    | Edit this page View Source

    ExecuteEmbeddedSqlScriptExpression()

    Initializes a new instance of the ExecuteEmbeddedSqlScriptExpression class.

    Declaration
    [Obsolete]
    public ExecuteEmbeddedSqlScriptExpression()
    | Edit this page View Source

    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

    | Edit this page View Source

    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 Source

    MigrationAssemblies

    Gets or sets the migration assemblies

    Declaration
    [Obsolete]
    [CanBeNull]
    public IAssemblyCollection MigrationAssemblies { get; set; }
    Property Value
    Type Description
    IAssemblyCollection
    | Edit this page View Source

    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 Source

    ExecuteWith(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
    MigrationExpressionBase.ExecuteWith(IMigrationProcessor)
    | Edit this page View Source

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    MigrationExpressionBase.ToString()

    Implements

    IMigrationExpression
    ICanBeValidated

    Extension Methods

    LegacyValidationExtensions.CollectErrors(ICanBeValidated, ICollection<string>, IServiceProvider)
    LegacyValidationExtensions.TryCollectResults(ICanBeValidated, ICollection<ValidationResult>, IServiceProvider, IDictionary<object, object>)
    • Edit this page
    • View Source
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.