Class DeleteColumnExpression
Expression to delete a column
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class DeleteColumnExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated, ISchemaExpression, IValidatableObject
Properties
| Edit this page View SourceColumnNames
Gets or sets the column names
Declaration
public ICollection<string> ColumnNames { get; set; }
Property Value
Type | Description |
---|---|
ICollection<string> |
SchemaName
Gets or sets the schema name
Declaration
public virtual string SchemaName { get; set; }
Property Value
Type | Description |
---|---|
string |
TableName
Gets or sets a table name
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "TableNameCannotBeNullOrEmpty")]
public virtual string TableName { get; set; }
Property Value
Type | Description |
---|---|
string |
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 SourceToString()
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
| Edit this page View SourceValidate(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. |