Class CreateTableExpression
Expression to create a table
Implements
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class CreateTableExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated, ISchemaExpression, IColumnsExpression, IValidationChildren
  Properties
| Edit this page View SourceColumns
Gets or sets the column definitions
Declaration
public virtual IList<ColumnDefinition> Columns { get; set; }
  Property Value
| Type | Description | 
|---|---|
| IList<ColumnDefinition> | 
SchemaName
Gets or sets the schema name
Declaration
public virtual string SchemaName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
TableDescription
Gets or sets the table description
Declaration
public virtual string TableDescription { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
TableName
Gets 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 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()
Returns a string that represents the current object.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| string | A string that represents the current object.  |