diff options
| author | Bob Arnson <bob@firegiant.com> | 2020-01-23 18:29:13 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2020-01-23 18:33:33 -0500 |
| commit | 2d6d903defea5625da52831c2a2a7a958b1ab325 (patch) | |
| tree | 83281f909fd2ff1851dfbb015c675df2ecb320fd /src/WixToolset.Core | |
| parent | 54c6cf7e151b4e816cedc393e9c520eb818524de (diff) | |
| download | wix-2d6d903defea5625da52831c2a2a7a958b1ab325.tar.gz wix-2d6d903defea5625da52831c2a2a7a958b1ab325.tar.bz2 wix-2d6d903defea5625da52831c2a2a7a958b1ab325.zip | |
Load custom table definitions from extensions during binding.
Diffstat (limited to 'src/WixToolset.Core')
| -rw-r--r-- | src/WixToolset.Core/ExtensibilityServices/WindowsInstallerBackendHelper.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/WixToolset.Core/ExtensibilityServices/WindowsInstallerBackendHelper.cs b/src/WixToolset.Core/ExtensibilityServices/WindowsInstallerBackendHelper.cs index 6b535756..4887d995 100644 --- a/src/WixToolset.Core/ExtensibilityServices/WindowsInstallerBackendHelper.cs +++ b/src/WixToolset.Core/ExtensibilityServices/WindowsInstallerBackendHelper.cs | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Core.ExtensibilityServices | 3 | namespace WixToolset.Core.ExtensibilityServices |
| 4 | { | 4 | { |
| 5 | using System.Collections.Generic; | ||
| 5 | using System.Linq; | 6 | using System.Linq; |
| 6 | using WixToolset.Data; | 7 | using WixToolset.Data; |
| 7 | using WixToolset.Data.WindowsInstaller; | 8 | using WixToolset.Data.WindowsInstaller; |
| @@ -9,9 +10,9 @@ namespace WixToolset.Core.ExtensibilityServices | |||
| 9 | 10 | ||
| 10 | internal class WindowsInstallerBackendHelper : IWindowsInstallerBackendHelper | 11 | internal class WindowsInstallerBackendHelper : IWindowsInstallerBackendHelper |
| 11 | { | 12 | { |
| 12 | public bool TryAddTupleToOutputMatchingTableDefinitions(IntermediateTuple tuple, WindowsInstallerData output, TableDefinition[] tableDefinitions) => this.TryAddTupleToOutputMatchingTableDefinitions(tuple, output, tableDefinitions, false); | 13 | public bool TryAddTupleToOutputMatchingTableDefinitions(IntermediateTuple tuple, WindowsInstallerData output, IEnumerable<TableDefinition> tableDefinitions) => this.TryAddTupleToOutputMatchingTableDefinitions(tuple, output, tableDefinitions, false); |
| 13 | 14 | ||
| 14 | public bool TryAddTupleToOutputMatchingTableDefinitions(IntermediateTuple tuple, WindowsInstallerData output, TableDefinition[] tableDefinitions, bool columnZeroIsId) | 15 | public bool TryAddTupleToOutputMatchingTableDefinitions(IntermediateTuple tuple, WindowsInstallerData output, IEnumerable<TableDefinition> tableDefinitions, bool columnZeroIsId) |
| 15 | { | 16 | { |
| 16 | var tableDefinition = tableDefinitions.FirstOrDefault(t => t.Name == tuple.Definition.Name); | 17 | var tableDefinition = tableDefinitions.FirstOrDefault(t => t.Name == tuple.Definition.Name); |
| 17 | 18 | ||
