Class DeleteConstraintExpression
Expression to delete a constraint
Implements
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class DeleteConstraintExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated, ISupportAdditionalFeatures, IConstraintExpression, IValidatableObject
Constructors
DeleteConstraintExpression(ConstraintType)
Initializes a new instance of the DeleteConstraintExpression class.
Declaration
public DeleteConstraintExpression(ConstraintType type)
Parameters
| Type | Name | Description |
|---|---|---|
| ConstraintType | type |
Properties
AdditionalFeatures
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 or sets the constraint definition
Declaration
public ConstraintDefinition Constraint { get; set; }
Property Value
| Type | Description |
|---|---|
| ConstraintDefinition |
Methods
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
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Overrides
Validate(ValidationContext)
Determines whether the specified object is valid.
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidationContext | validationContext | The validation context. |
Returns
| Type | Description |
|---|---|
| IEnumerable<ValidationResult> | A collection that holds failed-validation information. |