Search Results for

    Show / Hide Table of Contents
    View Source

    Class TableDefinition

    Defines the structure and metadata of a database table.

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Persistence.DatabaseModelDefinitions
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class TableDefinition

    Constructors

    View Source

    TableDefinition()

    Initializes a new instance of the TableDefinition class, which represents the definition of a database table in the Umbraco persistence layer.

    Declaration
    public TableDefinition()

    Properties

    View Source

    Columns

    Gets or sets the collection of column definitions for the table.

    Declaration
    public virtual ICollection<ColumnDefinition> Columns { get; set; }
    Property Value
    Type Description
    ICollection<ColumnDefinition>
    View Source

    ForeignKeys

    Gets or sets the collection of ForeignKeyDefinition objects that define the foreign keys for this table.

    Declaration
    public virtual ICollection<ForeignKeyDefinition> ForeignKeys { get; set; }
    Property Value
    Type Description
    ICollection<ForeignKeyDefinition>
    View Source

    Indexes

    Gets or sets the collection of index definitions associated with this table.

    Declaration
    public virtual ICollection<IndexDefinition> Indexes { get; set; }
    Property Value
    Type Description
    ICollection<IndexDefinition>
    View Source

    Name

    Gets or sets the name of the table.

    Declaration
    public virtual string Name { get; set; }
    Property Value
    Type Description
    string
    View Source

    SchemaName

    Gets or sets the schema name of the table.

    Declaration
    public virtual string SchemaName { get; set; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX