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