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