Class CreateTableExpression
Represents a migration expression used to create a new database table.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Expressions
Assembly: Umbraco.Infrastructure.dll
Syntax
public class CreateTableExpression : MigrationExpressionBase, IMigrationExpression
Constructors
View SourceCreateTableExpression(IMigrationContext)
Initializes a new instance of the CreateTableExpression class with the specified migration context.
Declaration
public CreateTableExpression(IMigrationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationContext | context | The IMigrationContext to use for the table creation expression. |
Properties
View SourceColumns
Gets or sets the collection of column definitions for the table.
Declaration
public virtual IList<ColumnDefinition> Columns { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<ColumnDefinition> |
SchemaName
Gets or sets the database schema name in which the table will be created.
Declaration
public virtual string SchemaName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TableName
Gets or sets the name of the table to be created.
Declaration
public virtual string TableName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceGetSql()
Declaration
protected override string GetSql()
Returns
| Type | Description |
|---|---|
| string |