diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-04-03 11:38:20 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-04-03 13:51:31 +1000 |
| commit | 11112ebcdf97d4fa53e34d9dfe48410ff2378435 (patch) | |
| tree | d995b68bb319a052c2259c8a4b6dbdf665926fca /src/WixToolset.Core | |
| parent | 37356647817b72a336eeedaa7472e268a04054c8 (diff) | |
| download | wix-11112ebcdf97d4fa53e34d9dfe48410ff2378435.tar.gz wix-11112ebcdf97d4fa53e34d9dfe48410ff2378435.tar.bz2 wix-11112ebcdf97d4fa53e34d9dfe48410ff2378435.zip | |
Use TupleIdIsPrimaryKey.
Diffstat (limited to 'src/WixToolset.Core')
| -rw-r--r-- | src/WixToolset.Core/ExtensibilityServices/WindowsInstallerBackendHelper.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/WixToolset.Core/ExtensibilityServices/WindowsInstallerBackendHelper.cs b/src/WixToolset.Core/ExtensibilityServices/WindowsInstallerBackendHelper.cs index 34efe8e3..80179d1c 100644 --- a/src/WixToolset.Core/ExtensibilityServices/WindowsInstallerBackendHelper.cs +++ b/src/WixToolset.Core/ExtensibilityServices/WindowsInstallerBackendHelper.cs | |||
| @@ -10,9 +10,7 @@ namespace WixToolset.Core.ExtensibilityServices | |||
| 10 | 10 | ||
| 11 | internal class WindowsInstallerBackendHelper : IWindowsInstallerBackendHelper | 11 | internal class WindowsInstallerBackendHelper : IWindowsInstallerBackendHelper |
| 12 | { | 12 | { |
| 13 | public bool TryAddTupleToOutputMatchingTableDefinitions(IntermediateTuple tuple, WindowsInstallerData output, IEnumerable<TableDefinition> tableDefinitions) => this.TryAddTupleToOutputMatchingTableDefinitions(tuple, output, tableDefinitions, false); | 13 | public bool TryAddTupleToOutputMatchingTableDefinitions(IntermediateTuple tuple, WindowsInstallerData output, IEnumerable<TableDefinition> tableDefinitions) |
| 14 | |||
| 15 | public bool TryAddTupleToOutputMatchingTableDefinitions(IntermediateTuple tuple, WindowsInstallerData output, IEnumerable<TableDefinition> tableDefinitions, bool columnZeroIsId) | ||
| 16 | { | 14 | { |
| 17 | var tableDefinition = tableDefinitions.FirstOrDefault(t => t.TupleDefinitionName == tuple.Definition.Name); | 15 | var tableDefinition = tableDefinitions.FirstOrDefault(t => t.TupleDefinitionName == tuple.Definition.Name); |
| 18 | 16 | ||
| @@ -25,7 +23,7 @@ namespace WixToolset.Core.ExtensibilityServices | |||
| 25 | var row = table.CreateRow(tuple.SourceLineNumbers); | 23 | var row = table.CreateRow(tuple.SourceLineNumbers); |
| 26 | var rowOffset = 0; | 24 | var rowOffset = 0; |
| 27 | 25 | ||
| 28 | if (columnZeroIsId) | 26 | if (tableDefinition.TupleIdIsPrimaryKey) |
| 29 | { | 27 | { |
| 30 | row[0] = tuple.Id.Id; | 28 | row[0] = tuple.Id.Id; |
| 31 | rowOffset = 1; | 29 | rowOffset = 1; |
