Class MigrationValidator
Inherited Members
Namespace: FluentMigrator.Runner
Assembly: FluentMigrator.Runner.dll
Syntax
public class MigrationValidator
Constructors
| Edit this page View SourceMigrationValidator()
Declaration
[Obsolete]
public MigrationValidator()
MigrationValidator(IAnnouncer, IConventionSet)
Declaration
[Obsolete]
public MigrationValidator(IAnnouncer announcer, IConventionSet conventions)
Parameters
Type | Name | Description |
---|---|---|
IAnnouncer | announcer | |
IConventionSet | conventions |
MigrationValidator(ILogger<MigrationValidator>, IConventionSet, IMigrationExpressionValidator)
Declaration
public MigrationValidator(ILogger<MigrationValidator> logger, IConventionSet conventions, IMigrationExpressionValidator validator = null)
Parameters
Type | Name | Description |
---|---|---|
ILogger<MigrationValidator> | logger | |
IConventionSet | conventions | |
IMigrationExpressionValidator | validator |
Methods
| Edit this page View SourceApplyConventionsToAndValidateExpressions(IMigration, IEnumerable<IMigrationExpression>)
Validates each migration expression that has implemented the ICanBeValidated interface. It throws an InvalidMigrationException exception if validation fails.
Declaration
public void ApplyConventionsToAndValidateExpressions(IMigration migration, IEnumerable<IMigrationExpression> expressions)
Parameters
Type | Name | Description |
---|---|---|
IMigration | migration | The current migration being run |
IEnumerable<IMigrationExpression> | expressions | All the expressions contained in the up or down action |