diff options
Diffstat (limited to 'src/api/wix/WixToolset.Data/Symbols/WixPatchRefSymbol.cs')
-rw-r--r-- | src/api/wix/WixToolset.Data/Symbols/WixPatchRefSymbol.cs | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/api/wix/WixToolset.Data/Symbols/WixPatchRefSymbol.cs b/src/api/wix/WixToolset.Data/Symbols/WixPatchRefSymbol.cs new file mode 100644 index 00000000..66257d84 --- /dev/null +++ b/src/api/wix/WixToolset.Data/Symbols/WixPatchRefSymbol.cs | |||
@@ -0,0 +1,52 @@ | |||
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.Symbols; | ||
6 | |||
7 | public static partial class SymbolDefinitions | ||
8 | { | ||
9 | public static readonly IntermediateSymbolDefinition WixPatchRef = new IntermediateSymbolDefinition( | ||
10 | SymbolDefinitionType.WixPatchRef, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(WixPatchRefSymbolFields.Table), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(WixPatchRefSymbolFields.PrimaryKeys), IntermediateFieldType.String), | ||
15 | }, | ||
16 | typeof(WixPatchRefSymbol)); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | namespace WixToolset.Data.Symbols | ||
21 | { | ||
22 | public enum WixPatchRefSymbolFields | ||
23 | { | ||
24 | Table, | ||
25 | PrimaryKeys, | ||
26 | } | ||
27 | |||
28 | public class WixPatchRefSymbol : IntermediateSymbol | ||
29 | { | ||
30 | public WixPatchRefSymbol() : base(SymbolDefinitions.WixPatchRef, null, null) | ||
31 | { | ||
32 | } | ||
33 | |||
34 | public WixPatchRefSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchRef, sourceLineNumber, id) | ||
35 | { | ||
36 | } | ||
37 | |||
38 | public IntermediateField this[WixPatchRefSymbolFields index] => this.Fields[(int)index]; | ||
39 | |||
40 | public string Table | ||
41 | { | ||
42 | get => (string)this.Fields[(int)WixPatchRefSymbolFields.Table]; | ||
43 | set => this.Set((int)WixPatchRefSymbolFields.Table, value); | ||
44 | } | ||
45 | |||
46 | public string PrimaryKeys | ||
47 | { | ||
48 | get => (string)this.Fields[(int)WixPatchRefSymbolFields.PrimaryKeys]; | ||
49 | set => this.Set((int)WixPatchRefSymbolFields.PrimaryKeys, value); | ||
50 | } | ||
51 | } | ||
52 | } \ No newline at end of file | ||