Search Results for

    Show / Hide Table of Contents

    Class PerformDBOperationExpression

    Expression that allows the execution of DB operations

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

    Properties

    | Edit this page View Source

    Operation

    Gets or sets the operation to be executed for a given database connection

    Declaration
    [Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "OperationCannotBeNull")]
    public Action<IDbConnection, IDbTransaction> Operation { get; set; }
    Property Value
    Type Description
    Action<IDbConnection, IDbTransaction>

    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)

    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.