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