diff options
Diffstat (limited to '')
-rw-r--r-- | src/wixext/Tuples/SqlScriptTuple.cs | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/wixext/Tuples/SqlScriptTuple.cs b/src/wixext/Tuples/SqlScriptTuple.cs index 6e4e484b..94c70390 100644 --- a/src/wixext/Tuples/SqlScriptTuple.cs +++ b/src/wixext/Tuples/SqlScriptTuple.cs | |||
@@ -3,30 +3,30 @@ | |||
3 | namespace WixToolset.Sql | 3 | namespace WixToolset.Sql |
4 | { | 4 | { |
5 | using WixToolset.Data; | 5 | using WixToolset.Data; |
6 | using WixToolset.Sql.Tuples; | 6 | using WixToolset.Sql.Symbols; |
7 | 7 | ||
8 | public static partial class SqlTupleDefinitions | 8 | public static partial class SqlSymbolDefinitions |
9 | { | 9 | { |
10 | public static readonly IntermediateTupleDefinition SqlScript = new IntermediateTupleDefinition( | 10 | public static readonly IntermediateSymbolDefinition SqlScript = new IntermediateSymbolDefinition( |
11 | SqlTupleDefinitionType.SqlScript.ToString(), | 11 | SqlSymbolDefinitionType.SqlScript.ToString(), |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new IntermediateFieldDefinition(nameof(SqlScriptTupleFields.SqlDbRef), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(SqlScriptSymbolFields.SqlDbRef), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(SqlScriptTupleFields.ComponentRef), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(SqlScriptSymbolFields.ComponentRef), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(SqlScriptTupleFields.ScriptBinaryRef), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(SqlScriptSymbolFields.ScriptBinaryRef), IntermediateFieldType.String), |
17 | new IntermediateFieldDefinition(nameof(SqlScriptTupleFields.UserRef), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(SqlScriptSymbolFields.UserRef), IntermediateFieldType.String), |
18 | new IntermediateFieldDefinition(nameof(SqlScriptTupleFields.Attributes), IntermediateFieldType.Number), | 18 | new IntermediateFieldDefinition(nameof(SqlScriptSymbolFields.Attributes), IntermediateFieldType.Number), |
19 | new IntermediateFieldDefinition(nameof(SqlScriptTupleFields.Sequence), IntermediateFieldType.Number), | 19 | new IntermediateFieldDefinition(nameof(SqlScriptSymbolFields.Sequence), IntermediateFieldType.Number), |
20 | }, | 20 | }, |
21 | typeof(SqlScriptTuple)); | 21 | typeof(SqlScriptSymbol)); |
22 | } | 22 | } |
23 | } | 23 | } |
24 | 24 | ||
25 | namespace WixToolset.Sql.Tuples | 25 | namespace WixToolset.Sql.Symbols |
26 | { | 26 | { |
27 | using WixToolset.Data; | 27 | using WixToolset.Data; |
28 | 28 | ||
29 | public enum SqlScriptTupleFields | 29 | public enum SqlScriptSymbolFields |
30 | { | 30 | { |
31 | SqlDbRef, | 31 | SqlDbRef, |
32 | ComponentRef, | 32 | ComponentRef, |
@@ -36,52 +36,52 @@ namespace WixToolset.Sql.Tuples | |||
36 | Sequence, | 36 | Sequence, |
37 | } | 37 | } |
38 | 38 | ||
39 | public class SqlScriptTuple : IntermediateTuple | 39 | public class SqlScriptSymbol : IntermediateSymbol |
40 | { | 40 | { |
41 | public SqlScriptTuple() : base(SqlTupleDefinitions.SqlScript, null, null) | 41 | public SqlScriptSymbol() : base(SqlSymbolDefinitions.SqlScript, null, null) |
42 | { | 42 | { |
43 | } | 43 | } |
44 | 44 | ||
45 | public SqlScriptTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SqlTupleDefinitions.SqlScript, sourceLineNumber, id) | 45 | public SqlScriptSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SqlSymbolDefinitions.SqlScript, sourceLineNumber, id) |
46 | { | 46 | { |
47 | } | 47 | } |
48 | 48 | ||
49 | public IntermediateField this[SqlScriptTupleFields index] => this.Fields[(int)index]; | 49 | public IntermediateField this[SqlScriptSymbolFields index] => this.Fields[(int)index]; |
50 | 50 | ||
51 | public string SqlDbRef | 51 | public string SqlDbRef |
52 | { | 52 | { |
53 | get => this.Fields[(int)SqlScriptTupleFields.SqlDbRef].AsString(); | 53 | get => this.Fields[(int)SqlScriptSymbolFields.SqlDbRef].AsString(); |
54 | set => this.Set((int)SqlScriptTupleFields.SqlDbRef, value); | 54 | set => this.Set((int)SqlScriptSymbolFields.SqlDbRef, value); |
55 | } | 55 | } |
56 | 56 | ||
57 | public string ComponentRef | 57 | public string ComponentRef |
58 | { | 58 | { |
59 | get => this.Fields[(int)SqlScriptTupleFields.ComponentRef].AsString(); | 59 | get => this.Fields[(int)SqlScriptSymbolFields.ComponentRef].AsString(); |
60 | set => this.Set((int)SqlScriptTupleFields.ComponentRef, value); | 60 | set => this.Set((int)SqlScriptSymbolFields.ComponentRef, value); |
61 | } | 61 | } |
62 | 62 | ||
63 | public string ScriptBinaryRef | 63 | public string ScriptBinaryRef |
64 | { | 64 | { |
65 | get => this.Fields[(int)SqlScriptTupleFields.ScriptBinaryRef].AsString(); | 65 | get => this.Fields[(int)SqlScriptSymbolFields.ScriptBinaryRef].AsString(); |
66 | set => this.Set((int)SqlScriptTupleFields.ScriptBinaryRef, value); | 66 | set => this.Set((int)SqlScriptSymbolFields.ScriptBinaryRef, value); |
67 | } | 67 | } |
68 | 68 | ||
69 | public string UserRef | 69 | public string UserRef |
70 | { | 70 | { |
71 | get => this.Fields[(int)SqlScriptTupleFields.UserRef].AsString(); | 71 | get => this.Fields[(int)SqlScriptSymbolFields.UserRef].AsString(); |
72 | set => this.Set((int)SqlScriptTupleFields.UserRef, value); | 72 | set => this.Set((int)SqlScriptSymbolFields.UserRef, value); |
73 | } | 73 | } |
74 | 74 | ||
75 | public int Attributes | 75 | public int Attributes |
76 | { | 76 | { |
77 | get => this.Fields[(int)SqlScriptTupleFields.Attributes].AsNumber(); | 77 | get => this.Fields[(int)SqlScriptSymbolFields.Attributes].AsNumber(); |
78 | set => this.Set((int)SqlScriptTupleFields.Attributes, value); | 78 | set => this.Set((int)SqlScriptSymbolFields.Attributes, value); |
79 | } | 79 | } |
80 | 80 | ||
81 | public int? Sequence | 81 | public int? Sequence |
82 | { | 82 | { |
83 | get => this.Fields[(int)SqlScriptTupleFields.Sequence].AsNullableNumber(); | 83 | get => this.Fields[(int)SqlScriptSymbolFields.Sequence].AsNullableNumber(); |
84 | set => this.Set((int)SqlScriptTupleFields.Sequence, value); | 84 | set => this.Set((int)SqlScriptSymbolFields.Sequence, value); |
85 | } | 85 | } |
86 | } | 86 | } |
87 | } \ No newline at end of file | 87 | } \ No newline at end of file |