Skip to main content

TableDefinition Class

Definition of a table in a database.

Methods​

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.

Properties​

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.

Fields​

FieldDescription
MaxColumnsInRealTableTracks the maximum number of columns supported in a real table. This is a Windows Installer limitation.

WixToolset.Data.dll version 6.0.0+8c7432e50072e009353ea5f2c956ccf453476f71

CompareTo(updated) Method​

Compares this table definition to another table definition.

Declaration​

public int CompareTo(
TableDefinition updated
)

Parameters​

ParameterTypeDescription
updatedTableDefinitionThe updated to compare with this target definition.

Return value​

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

Remarks​

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

CreateRow(sourceLineNumbers) Method​

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.

Declaration​

public Row CreateRow(
WixToolset.Data.SourceLineNumber sourceLineNumbers
)

Parameters​

ParameterTypeDescription
sourceLineNumbersWixToolset.Data.SourceLineNumberOriginal source lines for this row.

Return value​

Row Created row.

Columns Property​

Gets the collection of column definitions for this table.

Declaration​

public ColumnDefinition[] Columns { get; set; } 

Item Property​

Gets the column definition in the table by index.

Declaration​

public ColumnDefinition Item[
int columnIndex
] { get; set; }

Parameters​

ParameterTypeDescription
columnIndexintIndex of column to locate.

Name Property​

Gets the name of the table.

Declaration​

public string Name { get; set; } 

SymbolDefinition Property​

Gets the symbol definition associated with this table.

Declaration​

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

SymbolIdIsPrimaryKey Property​

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

Declaration​

public bool SymbolIdIsPrimaryKey { get; set; } 

Unreal Property​

Gets if the table is unreal.

Declaration​

public bool Unreal { get; set; }