Class AlterSchemaExpression
Expression to move a table from one schema to another
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class AlterSchemaExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated
Properties
| Edit this page View SourceDestinationSchemaName
Gets or sets the destination schema name
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "DestinationSchemaCannotBeNull")]
public virtual string DestinationSchemaName { get; set; }
Property Value
Type | Description |
---|---|
string |
SourceSchemaName
Gets or sets the source schema name
Declaration
public virtual string SourceSchemaName { get; set; }
Property Value
Type | Description |
---|---|
string |
TableName
Gets or sets the 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()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |