diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs | 6 | ||||
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs index 5d24d08a..f4e05489 100644 --- a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs | |||
| @@ -127,7 +127,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 127 | 127 | ||
| 128 | using (View tableView = this.Database.OpenExecuteView(String.Format(CultureInfo.InvariantCulture, "SELECT * FROM `{0}`", tableName))) | 128 | using (View tableView = this.Database.OpenExecuteView(String.Format(CultureInfo.InvariantCulture, "SELECT * FROM `{0}`", tableName))) |
| 129 | { | 129 | { |
| 130 | List<ColumnDefinition> columns; | 130 | ColumnDefinition[] columns; |
| 131 | using (Record columnNameRecord = tableView.GetColumnInfo(MsiInterop.MSICOLINFONAMES), | 131 | using (Record columnNameRecord = tableView.GetColumnInfo(MsiInterop.MSICOLINFONAMES), |
| 132 | columnTypeRecord = tableView.GetColumnInfo(MsiInterop.MSICOLINFOTYPES)) | 132 | columnTypeRecord = tableView.GetColumnInfo(MsiInterop.MSICOLINFOTYPES)) |
| 133 | { | 133 | { |
| @@ -144,7 +144,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | int columnCount = columnNameRecord.GetFieldCount(); | 146 | int columnCount = columnNameRecord.GetFieldCount(); |
| 147 | columns = new List<ColumnDefinition>(columnCount); | 147 | columns = new ColumnDefinition[columnCount]; |
| 148 | for (int i = 1; i <= columnCount; i++) | 148 | for (int i = 1; i <= columnCount; i++) |
| 149 | { | 149 | { |
| 150 | string columnName = columnNameRecord.GetString(i); | 150 | string columnName = columnNameRecord.GetString(i); |
| @@ -260,7 +260,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 260 | columnModularizeType = ColumnModularizeType.Column; | 260 | columnModularizeType = ColumnModularizeType.Column; |
| 261 | } | 261 | } |
| 262 | 262 | ||
| 263 | columns.Add(new ColumnDefinition(columnName, columnType, length, primary, nullable, columnCategory, minValue, maxValue, keyTable, keyColumn, set, description, columnModularizeType, (ColumnType.Localized == columnType), true)); | 263 | columns[i - 1] = new ColumnDefinition(columnName, columnType, length, primary, nullable, columnCategory, minValue, maxValue, keyTable, keyColumn, set, description, columnModularizeType, (ColumnType.Localized == columnType), true); |
| 264 | } | 264 | } |
| 265 | } | 265 | } |
| 266 | 266 | ||
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs index 00e5a755..80401822 100644 --- a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs | |||
| @@ -212,7 +212,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 212 | 212 | ||
| 213 | // mark the field as modified | 213 | // mark the field as modified |
| 214 | int indexOfModifiedValue = -1; | 214 | int indexOfModifiedValue = -1; |
| 215 | for (int i = 0; i < modifiedRow.TableDefinition.Columns.Count; ++i) | 215 | for (int i = 0; i < modifiedRow.TableDefinition.Columns.Length; ++i) |
| 216 | { | 216 | { |
| 217 | if (columnName.Equals(modifiedRow.TableDefinition.Columns[i].Name, StringComparison.Ordinal)) | 217 | if (columnName.Equals(modifiedRow.TableDefinition.Columns[i].Name, StringComparison.Ordinal)) |
| 218 | { | 218 | { |
| @@ -270,7 +270,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 270 | string[] primaryKeyParts = primaryKeys.Split('\t'); | 270 | string[] primaryKeyParts = primaryKeys.Split('\t'); |
| 271 | int primaryKeyPartIndex = 0; | 271 | int primaryKeyPartIndex = 0; |
| 272 | 272 | ||
| 273 | for (int i = 0; i < table.Definition.Columns.Count; i++) | 273 | for (int i = 0; i < table.Definition.Columns.Length; i++) |
| 274 | { | 274 | { |
| 275 | ColumnDefinition columnDefinition = table.Definition.Columns[i]; | 275 | ColumnDefinition columnDefinition = table.Definition.Columns[i]; |
| 276 | 276 | ||
