ColumnInfo Class
Defines a single column of a table in an installer database.
Methods
Section titled “Methods”| Method | Description |
|---|---|
| ToString() | Gets the name of the column. |
Properties
Section titled “Properties”| Property | Description |
|---|---|
| ColumnDefinitionString | Gets a short string defining the type and size of the column. |
| DBType | Gets the type of the column as an integer that can be cast to a System.Data.DbType. This is one of the following: Int16, Int32, String, or Binary |
| IsLocalizable | Gets a value indicating whether the column is a string column that is localizable. |
| IsRequired | Gets a value indicating whether the column must be non-null when inserting a record. |
| IsTemporary | Gets a value indicating whether the column is temporary. Temporary columns are not persisted when the database is saved to disk. |
| Name | Gets the name of the column. |
| Size | Gets the size of the column. |
| SqlCreateString | Gets an SQL fragment that can be used to create this column within a CREATE TABLE statement. |
| Type | Gets the type of the column as a System.Type. This is one of the following: Int16, Int32, String, or Stream |
Remarks
Section titled “Remarks”Once created, a ColumnInfo object is immutable.
WixToolset.Dtf.WindowsInstaller.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8
ToString() Method
Section titled “ToString() Method”Gets the name of the column.
Declaration
Section titled “Declaration”public string ToString()Return value
Section titled “Return value”string Name of the column.
ColumnDefinitionString Property
Section titled “ColumnDefinitionString Property”Gets a short string defining the type and size of the column.
Declaration
Section titled “Declaration”public string ColumnDefinitionString { get; set; }Remarks
Section titled “Remarks”- s? - String, variable length (?=1-255)
- s0 - String, variable length
- i2 - Short integer
- i4 - Long integer
- v0 - Binary Stream
- g? - Temporary string (?=0-255)
- j? - Temporary integer (?=0,1,2,4)
- O0 - Temporary object (stream)
- l? - Localizable string, variable length (?=1-255)
- l0 - Localizable string, variable length
DBType Property
Section titled “DBType Property”Gets the type of the column as an integer that can be cast to a System.Data.DbType. This is one of the following: Int16, Int32, String, or Binary
Declaration
Section titled “Declaration”public int DBType { get; set; }IsLocalizable Property
Section titled “IsLocalizable Property”Gets a value indicating whether the column is a string column that is localizable.
Declaration
Section titled “Declaration”public bool IsLocalizable { get; set; }IsRequired Property
Section titled “IsRequired Property”Gets a value indicating whether the column must be non-null when inserting a record.
Declaration
Section titled “Declaration”public bool IsRequired { get; set; }IsTemporary Property
Section titled “IsTemporary Property”Gets a value indicating whether the column is temporary. Temporary columns are not persisted when the database is saved to disk.
Declaration
Section titled “Declaration”public bool IsTemporary { get; set; }Name Property
Section titled “Name Property”Gets the name of the column.
Declaration
Section titled “Declaration”public string Name { get; set; }Size Property
Section titled “Size Property”Gets the size of the column.
Declaration
Section titled “Declaration”public int Size { get; set; }SqlCreateString Property
Section titled “SqlCreateString Property”Gets an SQL fragment that can be used to create this column within a CREATE TABLE statement.
Declaration
Section titled “Declaration”public string SqlCreateString { get; set; }Remarks
Section titled “Remarks”Examples:
- LONG
- SHORT TEMPORARY
- CHAR(0) LOCALIZABLE
- CHAR(72) NOT NULL LOCALIZABLE
- OBJECT
Type Property
Section titled “Type Property”Gets the type of the column as a System.Type. This is one of the following: Int16, Int32, String, or Stream
Declaration
Section titled “Declaration”public System.Type Type { get; set; }