Search Results for

    Show / Hide Table of Contents
    View Source

    Class CreateTableExpression

    Represents a migration expression used to create a new database table.

    Inheritance
    object
    MigrationExpressionBase
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Expressions
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class CreateTableExpression : MigrationExpressionBase, IMigrationExpression

    Constructors

    View Source

    CreateTableExpression(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 Source

    Columns

    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>
    View Source

    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
    View Source

    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 Source

    GetSql()

    Declaration
    protected override string GetSql()
    Returns
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX