Class RenameColumnExpression
Expression to rename a column
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class RenameColumnExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated, ISchemaExpression
Properties
| Edit this page View SourceNewName
Gets or sets the new column name
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "NewColumnNameCannotBeNullOrEmpty")]
public virtual string NewName { get; set; }
Property Value
Type | Description |
---|---|
string |
OldName
Gets or sets the old column name
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "OldColumnNameCannotBeNullOrEmpty")]
public virtual string OldName { get; set; }
Property Value
Type | Description |
---|---|
string |
SchemaName
Gets or sets the schema name
Declaration
public virtual string SchemaName { get; set; }
Property Value
Type | Description |
---|---|
string |
TableName
Gets or sets the name of the table
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 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 |