Skip to content

TableInfo Class

Defines a table in an installation database.

MethodDescription
ToString()Gets a string representation of the table.
PropertyDescription
ColumnsGets information about the columns in this table.
NameGets the name of the table.
PrimaryKeysGets the names of the columns that are primary keys of the table.
SqlCreateStringGets an SQL CREATE string that can be used to create the table.
SqlInsertStringGets an SQL INSERT string that can be used insert a new record into the table.
SqlSelectStringGets an SQL SELECT string that can be used to select all columns of the table.
WixToolset.Dtf.WindowsInstaller.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Gets a string representation of the table.

public string ToString()

string The name of the table.

Gets information about the columns in this table.

public ColumnCollection Columns { get; set; }

This property queries the database every time it is called, to ensure the returned values are up-to-date. For best performance, hold onto the returned collection if using it more than once.

Gets the name of the table.

public string Name { get; set; }

Gets the names of the columns that are primary keys of the table.

public IList<System.String> PrimaryKeys { get; set; }

Gets an SQL CREATE string that can be used to create the table.

public string SqlCreateString { get; set; }

Gets an SQL INSERT string that can be used insert a new record into the table.

public string SqlInsertString { get; set; }

The values are expressed as question-mark tokens, to be supplied by the record.

Gets an SQL SELECT string that can be used to select all columns of the table.

public string SqlSelectString { get; set; }

The columns are listed explicitly in the SELECT string, as opposed to using “SELECT *”.