Class PerformDBOperationExpression
Expression that allows the execution of DB operations
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class PerformDBOperationExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated
Properties
| Edit this page View SourceOperation
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 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 |