Skip to content

TableDefinition Class

Definition of a table in a database.

MethodDescription
CompareTo(updated)Compares this table definition to another table definition.
CreateRow(sourceLineNumbers)In general this method shouldn’t be used - create rows from a Table instead. Creates a new row object of the type specified in this definition.
PropertyDescription
ColumnsGets the collection of column definitions for this table.
ItemGets the column definition in the table by index.
NameGets the name of the table.
SymbolDefinitionGets the symbol definition associated with this table.
SymbolIdIsPrimaryKeyGets if the primary key is the id of the symbol definition associated with this table.
UnrealGets if the table is unreal.
FieldDescription
MaxColumnsInRealTableTracks the maximum number of columns supported in a real table. This is a Windows Installer limitation.
WixToolset.Data.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Compares this table definition to another table definition.

public int CompareTo(
TableDefinition updated
)
ParameterTypeDescription
updatedTableDefinitionThe updated to compare with this target definition.

int 0 if the tables’ core properties are the same; otherwise, non-0.

Only Windows Installer traits are compared, allowing for updates to WiX-specific table definitions.

In general this method shouldn’t be used - create rows from a Table instead. Creates a new row object of the type specified in this definition.

public Row CreateRow(
WixToolset.Data.SourceLineNumber sourceLineNumbers
)
ParameterTypeDescription
sourceLineNumbersWixToolset.Data.SourceLineNumberOriginal source lines for this row.

Row Created row.

Gets the collection of column definitions for this table.

public ColumnDefinition[] Columns { get; set; }

Gets the column definition in the table by index.

public ColumnDefinition Item[
int columnIndex
] { get; set; }
ParameterTypeDescription
columnIndexintIndex of column to locate.

Gets the name of the table.

public string Name { get; set; }

Gets the symbol definition associated with this table.

public WixToolset.Data.IntermediateSymbolDefinition SymbolDefinition { get; set; }

Gets if the primary key is the id of the symbol definition associated with this table.

public bool SymbolIdIsPrimaryKey { get; set; }

Gets if the table is unreal.

public bool Unreal { get; set; }