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 SourceTableDefinition()
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 SourceColumns
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> |
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> |
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> |
Name
Gets or sets the name of the table.
Declaration
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SchemaName
Gets or sets the schema name of the table.
Declaration
public virtual string SchemaName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |