diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixProductSearchTuple.cs')
-rw-r--r-- | src/WixToolset.Data/Tuples/WixProductSearchTuple.cs | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/WixToolset.Data/Tuples/WixProductSearchTuple.cs b/src/WixToolset.Data/Tuples/WixProductSearchTuple.cs index 4a13f47d..22e96365 100644 --- a/src/WixToolset.Data/Tuples/WixProductSearchTuple.cs +++ b/src/WixToolset.Data/Tuples/WixProductSearchTuple.cs | |||
@@ -10,7 +10,6 @@ namespace WixToolset.Data | |||
10 | TupleDefinitionType.WixProductSearch, | 10 | TupleDefinitionType.WixProductSearch, |
11 | new[] | 11 | new[] |
12 | { | 12 | { |
13 | new IntermediateFieldDefinition(nameof(WixProductSearchTupleFields.WixSearchRef), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(WixProductSearchTupleFields.Guid), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(WixProductSearchTupleFields.Guid), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(WixProductSearchTupleFields.Attributes), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(WixProductSearchTupleFields.Attributes), IntermediateFieldType.Number), |
16 | }, | 15 | }, |
@@ -20,13 +19,24 @@ namespace WixToolset.Data | |||
20 | 19 | ||
21 | namespace WixToolset.Data.Tuples | 20 | namespace WixToolset.Data.Tuples |
22 | { | 21 | { |
22 | using System; | ||
23 | |||
23 | public enum WixProductSearchTupleFields | 24 | public enum WixProductSearchTupleFields |
24 | { | 25 | { |
25 | WixSearchRef, | ||
26 | Guid, | 26 | Guid, |
27 | Attributes, | 27 | Attributes, |
28 | } | 28 | } |
29 | 29 | ||
30 | [Flags] | ||
31 | public enum WixProductSearchAttributes | ||
32 | { | ||
33 | Version = 0x1, | ||
34 | Language = 0x2, | ||
35 | State = 0x4, | ||
36 | Assignment = 0x8, | ||
37 | UpgradeCode = 0x10, | ||
38 | } | ||
39 | |||
30 | public class WixProductSearchTuple : IntermediateTuple | 40 | public class WixProductSearchTuple : IntermediateTuple |
31 | { | 41 | { |
32 | public WixProductSearchTuple() : base(TupleDefinitions.WixProductSearch, null, null) | 42 | public WixProductSearchTuple() : base(TupleDefinitions.WixProductSearch, null, null) |
@@ -39,22 +49,16 @@ namespace WixToolset.Data.Tuples | |||
39 | 49 | ||
40 | public IntermediateField this[WixProductSearchTupleFields index] => this.Fields[(int)index]; | 50 | public IntermediateField this[WixProductSearchTupleFields index] => this.Fields[(int)index]; |
41 | 51 | ||
42 | public string WixSearchRef | ||
43 | { | ||
44 | get => (string)this.Fields[(int)WixProductSearchTupleFields.WixSearchRef]; | ||
45 | set => this.Set((int)WixProductSearchTupleFields.WixSearchRef, value); | ||
46 | } | ||
47 | |||
48 | public string Guid | 52 | public string Guid |
49 | { | 53 | { |
50 | get => (string)this.Fields[(int)WixProductSearchTupleFields.Guid]; | 54 | get => (string)this.Fields[(int)WixProductSearchTupleFields.Guid]; |
51 | set => this.Set((int)WixProductSearchTupleFields.Guid, value); | 55 | set => this.Set((int)WixProductSearchTupleFields.Guid, value); |
52 | } | 56 | } |
53 | 57 | ||
54 | public int Attributes | 58 | public WixProductSearchAttributes Attributes |
55 | { | 59 | { |
56 | get => (int)this.Fields[(int)WixProductSearchTupleFields.Attributes]; | 60 | get => (WixProductSearchAttributes)this.Fields[(int)WixProductSearchTupleFields.Attributes].AsNumber(); |
57 | set => this.Set((int)WixProductSearchTupleFields.Attributes, value); | 61 | set => this.Set((int)WixProductSearchTupleFields.Attributes, (int)value); |
58 | } | 62 | } |
59 | } | 63 | } |
60 | } \ No newline at end of file | 64 | } |