Class CreateConstraintExpression
The expression to create a constraint
Implements
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class CreateConstraintExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated, ISupportAdditionalFeatures, IConstraintExpression, IValidationChildren
Constructors
| Edit this page View SourceCreateConstraintExpression(ConstraintType)
Initializes a new instance of the CreateConstraintExpression class.
Declaration
public CreateConstraintExpression(ConstraintType type)
Parameters
Type | Name | Description |
---|---|---|
ConstraintType | type |
Properties
| Edit this page View SourceAdditionalFeatures
Gets the dictionary to store the values for additional features
Declaration
public IDictionary<string, object> AdditionalFeatures { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> |
Constraint
Gets the constraint definition
Declaration
public virtual ConstraintDefinition Constraint { get; set; }
Property Value
Type | Description |
---|---|
ConstraintDefinition |
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 |
Overrides
| Edit this page View SourceReverse()
Create a reversing migration expression
Declaration
public override IMigrationExpression Reverse()
Returns
Type | Description |
---|---|
IMigrationExpression | The reversing migration expression |
Overrides
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |