Class DefaultMigrationExpressionValidator
Default implementation of a IMigrationExpressionValidator
Implements
Inherited Members
Namespace: FluentMigrator.Validation
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class DefaultMigrationExpressionValidator : IMigrationExpressionValidator
Constructors
| Edit this page View SourceDefaultMigrationExpressionValidator(IServiceProvider)
Initializes a new instance of the DefaultMigrationExpressionValidator class.
Declaration
public DefaultMigrationExpressionValidator(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | serviceProvider | The service provider |
Methods
| Edit this page View SourceValidate(IMigrationExpression)
Validates the given migration expression
Declaration
public virtual IEnumerable<ValidationResult> Validate(IMigrationExpression expression)
Parameters
Type | Name | Description |
---|---|---|
IMigrationExpression | expression | The migration expression to validate |
Returns
Type | Description |
---|---|
IEnumerable<ValidationResult> | The validation results |