diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-06-19 13:45:04 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-06-19 14:02:13 +1000 |
| commit | 4b3a3e60eb5f621723be7b894a7a71ae331dcf46 (patch) | |
| tree | 4df7e0364a96661a743683da220d5c2d0a79af48 /src/WixToolset.Data/Tuples/WixBundleCustomDataCellTuple.cs | |
| parent | 19be63b9a7c50e17386cd476c1ffd7c40ba9eaf5 (diff) | |
| download | wix-4b3a3e60eb5f621723be7b894a7a71ae331dcf46.tar.gz wix-4b3a3e60eb5f621723be7b894a7a71ae331dcf46.tar.bz2 wix-4b3a3e60eb5f621723be7b894a7a71ae331dcf46.zip | |
Add BundleCustomData tuples. Remove Unreal from CustomTable.
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixBundleCustomDataCellTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixBundleCustomDataCellTuple.cs | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/WixBundleCustomDataCellTuple.cs b/src/WixToolset.Data/Tuples/WixBundleCustomDataCellTuple.cs new file mode 100644 index 00000000..d488d6d0 --- /dev/null +++ b/src/WixToolset.Data/Tuples/WixBundleCustomDataCellTuple.cs | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Data | ||
| 4 | { | ||
| 5 | using WixToolset.Data.Tuples; | ||
| 6 | |||
| 7 | public static partial class TupleDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateTupleDefinition WixBundleCustomDataCell = new IntermediateTupleDefinition( | ||
| 10 | TupleDefinitionType.WixBundleCustomDataCell, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellTupleFields.CustomDataRef), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellTupleFields.AttributeRef), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellTupleFields.ElementId), IntermediateFieldType.String), | ||
| 16 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataCellTupleFields.Value), IntermediateFieldType.String), | ||
| 17 | }, | ||
| 18 | typeof(WixBundleCustomDataCellTuple)); | ||
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | namespace WixToolset.Data.Tuples | ||
| 23 | { | ||
| 24 | public enum WixBundleCustomDataCellTupleFields | ||
| 25 | { | ||
| 26 | CustomDataRef, | ||
| 27 | AttributeRef, | ||
| 28 | ElementId, | ||
| 29 | Value, | ||
| 30 | } | ||
| 31 | |||
| 32 | public class WixBundleCustomDataCellTuple : IntermediateTuple | ||
| 33 | { | ||
| 34 | public WixBundleCustomDataCellTuple() : base(TupleDefinitions.WixBundleCustomDataCell, null, null) | ||
| 35 | { | ||
| 36 | } | ||
| 37 | |||
| 38 | public WixBundleCustomDataCellTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundleCustomDataCell, sourceLineNumber, id) | ||
| 39 | { | ||
| 40 | } | ||
| 41 | |||
| 42 | public IntermediateField this[WixBundleCustomDataCellTupleFields index] => this.Fields[(int)index]; | ||
| 43 | |||
| 44 | public string CustomDataRef | ||
| 45 | { | ||
| 46 | get => (string)this.Fields[(int)WixBundleCustomDataCellTupleFields.CustomDataRef]; | ||
| 47 | set => this.Set((int)WixBundleCustomDataCellTupleFields.CustomDataRef, value); | ||
| 48 | } | ||
| 49 | |||
| 50 | public string AttributeRef | ||
| 51 | { | ||
| 52 | get => (string)this.Fields[(int)WixBundleCustomDataCellTupleFields.AttributeRef]; | ||
| 53 | set => this.Set((int)WixBundleCustomDataCellTupleFields.AttributeRef, value); | ||
| 54 | } | ||
| 55 | |||
| 56 | public string ElementId | ||
| 57 | { | ||
| 58 | get => (string)this.Fields[(int)WixBundleCustomDataCellTupleFields.ElementId]; | ||
| 59 | set => this.Set((int)WixBundleCustomDataCellTupleFields.ElementId, value); | ||
| 60 | } | ||
| 61 | |||
| 62 | public string Value | ||
| 63 | { | ||
| 64 | get => (string)this.Fields[(int)WixBundleCustomDataCellTupleFields.Value]; | ||
| 65 | set => this.Set((int)WixBundleCustomDataCellTupleFields.Value, value); | ||
| 66 | } | ||
| 67 | } | ||
| 68 | } | ||
