diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Data/Tuples/_TransformViewTuple.cs | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/_TransformViewTuple.cs b/src/WixToolset.Data/Tuples/_TransformViewTuple.cs new file mode 100644 index 00000000..e3355062 --- /dev/null +++ b/src/WixToolset.Data/Tuples/_TransformViewTuple.cs | |||
@@ -0,0 +1,76 @@ | |||
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 _TransformView = new IntermediateTupleDefinition( | ||
10 | TupleDefinitionType._TransformView, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(_TransformViewTupleFields.Table), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(_TransformViewTupleFields.Column), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(_TransformViewTupleFields.Row), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(_TransformViewTupleFields.Data), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(_TransformViewTupleFields.Current), IntermediateFieldType.String), | ||
18 | }, | ||
19 | typeof(_TransformViewTuple)); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | namespace WixToolset.Data.Tuples | ||
24 | { | ||
25 | public enum _TransformViewTupleFields | ||
26 | { | ||
27 | Table, | ||
28 | Column, | ||
29 | Row, | ||
30 | Data, | ||
31 | Current, | ||
32 | } | ||
33 | |||
34 | public class _TransformViewTuple : IntermediateTuple | ||
35 | { | ||
36 | public _TransformViewTuple() : base(TupleDefinitions._TransformView, null, null) | ||
37 | { | ||
38 | } | ||
39 | |||
40 | public _TransformViewTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions._TransformView, sourceLineNumber, id) | ||
41 | { | ||
42 | } | ||
43 | |||
44 | public IntermediateField this[_TransformViewTupleFields index] => this.Fields[(int)index]; | ||
45 | |||
46 | public string Table | ||
47 | { | ||
48 | get => (string)this.Fields[(int)_TransformViewTupleFields.Table]?.Value; | ||
49 | set => this.Set((int)_TransformViewTupleFields.Table, value); | ||
50 | } | ||
51 | |||
52 | public string Column | ||
53 | { | ||
54 | get => (string)this.Fields[(int)_TransformViewTupleFields.Column]?.Value; | ||
55 | set => this.Set((int)_TransformViewTupleFields.Column, value); | ||
56 | } | ||
57 | |||
58 | public string Row | ||
59 | { | ||
60 | get => (string)this.Fields[(int)_TransformViewTupleFields.Row]?.Value; | ||
61 | set => this.Set((int)_TransformViewTupleFields.Row, value); | ||
62 | } | ||
63 | |||
64 | public string Data | ||
65 | { | ||
66 | get => (string)this.Fields[(int)_TransformViewTupleFields.Data]?.Value; | ||
67 | set => this.Set((int)_TransformViewTupleFields.Data, value); | ||
68 | } | ||
69 | |||
70 | public string Current | ||
71 | { | ||
72 | get => (string)this.Fields[(int)_TransformViewTupleFields.Current]?.Value; | ||
73 | set => this.Set((int)_TransformViewTupleFields.Current, value); | ||
74 | } | ||
75 | } | ||
76 | } \ No newline at end of file | ||