aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/MsiPatchSequenceTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/MsiPatchSequenceTuple.cs68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/MsiPatchSequenceTuple.cs b/src/WixToolset.Data/Tuples/MsiPatchSequenceTuple.cs
new file mode 100644
index 00000000..c48be28f
--- /dev/null
+++ b/src/WixToolset.Data/Tuples/MsiPatchSequenceTuple.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
3namespace WixToolset.Data
4{
5 using WixToolset.Data.Tuples;
6
7 public static partial class TupleDefinitions
8 {
9 public static readonly IntermediateTupleDefinition MsiPatchSequence = new IntermediateTupleDefinition(
10 TupleDefinitionType.MsiPatchSequence,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(MsiPatchSequenceTupleFields.PatchFamily), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(MsiPatchSequenceTupleFields.ProductCode), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(MsiPatchSequenceTupleFields.Sequence), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(MsiPatchSequenceTupleFields.Attributes), IntermediateFieldType.Number),
17 },
18 typeof(MsiPatchSequenceTuple));
19 }
20}
21
22namespace WixToolset.Data.Tuples
23{
24 public enum MsiPatchSequenceTupleFields
25 {
26 PatchFamily,
27 ProductCode,
28 Sequence,
29 Attributes,
30 }
31
32 public class MsiPatchSequenceTuple : IntermediateTuple
33 {
34 public MsiPatchSequenceTuple() : base(TupleDefinitions.MsiPatchSequence, null, null)
35 {
36 }
37
38 public MsiPatchSequenceTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.MsiPatchSequence, sourceLineNumber, id)
39 {
40 }
41
42 public IntermediateField this[MsiPatchSequenceTupleFields index] => this.Fields[(int)index];
43
44 public string PatchFamily
45 {
46 get => (string)this.Fields[(int)MsiPatchSequenceTupleFields.PatchFamily]?.Value;
47 set => this.Set((int)MsiPatchSequenceTupleFields.PatchFamily, value);
48 }
49
50 public string ProductCode
51 {
52 get => (string)this.Fields[(int)MsiPatchSequenceTupleFields.ProductCode]?.Value;
53 set => this.Set((int)MsiPatchSequenceTupleFields.ProductCode, value);
54 }
55
56 public string Sequence
57 {
58 get => (string)this.Fields[(int)MsiPatchSequenceTupleFields.Sequence]?.Value;
59 set => this.Set((int)MsiPatchSequenceTupleFields.Sequence, value);
60 }
61
62 public int Attributes
63 {
64 get => (int)this.Fields[(int)MsiPatchSequenceTupleFields.Attributes]?.Value;
65 set => this.Set((int)MsiPatchSequenceTupleFields.Attributes, value);
66 }
67 }
68} \ No newline at end of file