TableInfo Class
Defines a table in an installation database.
Methods
Method | Description |
---|---|
ToString() | Gets a string representation of the table. |
Properties
Property | Description |
---|---|
Columns | Gets information about the columns in this table. |
Name | Gets the name of the table. |
PrimaryKeys | Gets the names of the columns that are primary keys of the table. |
SqlCreateString | Gets an SQL CREATE string that can be used to create the table. |
SqlInsertString | Gets an SQL INSERT string that can be used insert a new record into the table. |
SqlSelectString | Gets an SQL SELECT string that can be used to select all columns of the table. |
WixToolset.Dtf.WindowsInstaller.dll
version 5.0.2+aa65968c419420d32e3e1b647aea0082f5ca5b78
ToString() Method
Gets a string representation of the table.
Declaration
public string ToString()
Return value
string
The name of the table.
Columns Property
Gets information about the columns in this table.
Declaration
public ColumnCollection Columns { get; set; }
Remarks
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.
Name Property
Gets the name of the table.
Declaration
public string Name { get; set; }
PrimaryKeys Property
Gets the names of the columns that are primary keys of the table.
Declaration
public IList<System.String> PrimaryKeys { get; set; }
SqlCreateString Property
Gets an SQL CREATE string that can be used to create the table.
Declaration
public string SqlCreateString { get; set; }
SqlInsertString Property
Gets an SQL INSERT string that can be used insert a new record into the table.
Declaration
public string SqlInsertString { get; set; }
Remarks
The values are expressed as question-mark tokens, to be supplied by the record.
SqlSelectString Property
Gets an SQL SELECT string that can be used to select all columns of the table.
Declaration
public string SqlSelectString { get; set; }
Remarks
The columns are listed explicitly in the SELECT string, as opposed to using "SELECT *".