diff options
author | Rob Mensching <rob@firegiant.com> | 2020-06-27 15:00:38 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2020-06-27 15:05:55 -0700 |
commit | c57f5bc9caad2adf1b0fe8fedc1003e49e272080 (patch) | |
tree | 849189fb1920619007d03a53d49d0a7e03b03066 | |
parent | bbbe36aed1ac5a1b27314a9f9658f49ef08fbb41 (diff) | |
download | wix-c57f5bc9caad2adf1b0fe8fedc1003e49e272080.tar.gz wix-c57f5bc9caad2adf1b0fe8fedc1003e49e272080.tar.bz2 wix-c57f5bc9caad2adf1b0fe8fedc1003e49e272080.zip |
The Great Tuple to Symbol Rename (tm)
-rw-r--r-- | src/wixext/SqlCompiler.cs | 32 | ||||
-rw-r--r-- | src/wixext/SqlExtensionData.cs | 10 | ||||
-rw-r--r-- | src/wixext/SqlTableDefinitions.cs | 16 | ||||
-rw-r--r-- | src/wixext/Tuples/SqlDatabaseTuple.cs | 70 | ||||
-rw-r--r-- | src/wixext/Tuples/SqlFileSpecTuple.cs | 52 | ||||
-rw-r--r-- | src/wixext/Tuples/SqlScriptTuple.cs | 58 | ||||
-rw-r--r-- | src/wixext/Tuples/SqlStringTuple.cs | 58 | ||||
-rw-r--r-- | src/wixext/Tuples/SqlTupleDefinitions.cs | 26 |
8 files changed, 161 insertions, 161 deletions
diff --git a/src/wixext/SqlCompiler.cs b/src/wixext/SqlCompiler.cs index 22b533de..2c0f914a 100644 --- a/src/wixext/SqlCompiler.cs +++ b/src/wixext/SqlCompiler.cs | |||
@@ -7,7 +7,7 @@ namespace WixToolset.Sql | |||
7 | using System.Xml.Linq; | 7 | using System.Xml.Linq; |
8 | using WixToolset.Data; | 8 | using WixToolset.Data; |
9 | using WixToolset.Extensibility; | 9 | using WixToolset.Extensibility; |
10 | using WixToolset.Sql.Tuples; | 10 | using WixToolset.Sql.Symbols; |
11 | 11 | ||
12 | /// <summary> | 12 | /// <summary> |
13 | /// The compiler for the WiX Toolset SQL Server Extension. | 13 | /// The compiler for the WiX Toolset SQL Server Extension. |
@@ -319,7 +319,7 @@ namespace WixToolset.Sql | |||
319 | 319 | ||
320 | if (!this.Messaging.EncounteredError) | 320 | if (!this.Messaging.EncounteredError) |
321 | { | 321 | { |
322 | var tuple = section.AddTuple(new SqlDatabaseTuple(sourceLineNumbers, id) | 322 | var symbol = section.AddSymbol(new SqlDatabaseSymbol(sourceLineNumbers, id) |
323 | { | 323 | { |
324 | Server = server, | 324 | Server = server, |
325 | Instance = instance, | 325 | Instance = instance, |
@@ -332,7 +332,7 @@ namespace WixToolset.Sql | |||
332 | 332 | ||
333 | if (0 != attributes) | 333 | if (0 != attributes) |
334 | { | 334 | { |
335 | tuple.Attributes = attributes; | 335 | symbol.Attributes = attributes; |
336 | } | 336 | } |
337 | } | 337 | } |
338 | } | 338 | } |
@@ -408,7 +408,7 @@ namespace WixToolset.Sql | |||
408 | 408 | ||
409 | if (!this.Messaging.EncounteredError) | 409 | if (!this.Messaging.EncounteredError) |
410 | { | 410 | { |
411 | var tuple = section.AddTuple(new SqlFileSpecTuple(sourceLineNumbers, id) | 411 | var symbol = section.AddSymbol(new SqlFileSpecSymbol(sourceLineNumbers, id) |
412 | { | 412 | { |
413 | Name = name, | 413 | Name = name, |
414 | Filename = fileName, | 414 | Filename = fileName, |
@@ -416,17 +416,17 @@ namespace WixToolset.Sql | |||
416 | 416 | ||
417 | if (null != size) | 417 | if (null != size) |
418 | { | 418 | { |
419 | tuple.Size = size; | 419 | symbol.Size = size; |
420 | } | 420 | } |
421 | 421 | ||
422 | if (null != maxSize) | 422 | if (null != maxSize) |
423 | { | 423 | { |
424 | tuple.MaxSize = maxSize; | 424 | symbol.MaxSize = maxSize; |
425 | } | 425 | } |
426 | 426 | ||
427 | if (null != growthSize) | 427 | if (null != growthSize) |
428 | { | 428 | { |
429 | tuple.GrowthSize = growthSize; | 429 | symbol.GrowthSize = growthSize; |
430 | } | 430 | } |
431 | } | 431 | } |
432 | 432 | ||
@@ -461,7 +461,7 @@ namespace WixToolset.Sql | |||
461 | break; | 461 | break; |
462 | case "BinaryKey": | 462 | case "BinaryKey": |
463 | binary = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 463 | binary = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
464 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.Binary, binary); | 464 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.Binary, binary); |
465 | break; | 465 | break; |
466 | case "Sequence": | 466 | case "Sequence": |
467 | sequence = this.ParseHelper.GetAttributeIntegerValue(sourceLineNumbers, attrib, 1, short.MaxValue); | 467 | sequence = this.ParseHelper.GetAttributeIntegerValue(sourceLineNumbers, attrib, 1, short.MaxValue); |
@@ -472,7 +472,7 @@ namespace WixToolset.Sql | |||
472 | this.Messaging.Write(ErrorMessages.IllegalAttributeWhenNested(sourceLineNumbers, element.Name.LocalName, attrib.Name.LocalName, element.Parent.Name.LocalName)); | 472 | this.Messaging.Write(ErrorMessages.IllegalAttributeWhenNested(sourceLineNumbers, element.Name.LocalName, attrib.Name.LocalName, element.Parent.Name.LocalName)); |
473 | } | 473 | } |
474 | sqlDb = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); | 474 | sqlDb = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); |
475 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SqlTupleDefinitions.SqlDatabase, sqlDb); | 475 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SqlSymbolDefinitions.SqlDatabase, sqlDb); |
476 | break; | 476 | break; |
477 | case "User": | 477 | case "User": |
478 | user = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 478 | user = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
@@ -599,7 +599,7 @@ namespace WixToolset.Sql | |||
599 | 599 | ||
600 | if (!this.Messaging.EncounteredError) | 600 | if (!this.Messaging.EncounteredError) |
601 | { | 601 | { |
602 | var tuple = section.AddTuple(new SqlScriptTuple(sourceLineNumbers, id) | 602 | var symbol = section.AddSymbol(new SqlScriptSymbol(sourceLineNumbers, id) |
603 | { | 603 | { |
604 | SqlDbRef = sqlDb, | 604 | SqlDbRef = sqlDb, |
605 | ComponentRef = componentId, | 605 | ComponentRef = componentId, |
@@ -610,7 +610,7 @@ namespace WixToolset.Sql | |||
610 | 610 | ||
611 | if (CompilerConstants.IntegerNotSet != sequence) | 611 | if (CompilerConstants.IntegerNotSet != sequence) |
612 | { | 612 | { |
613 | tuple.Sequence = sequence; | 613 | symbol.Sequence = sequence; |
614 | } | 614 | } |
615 | } | 615 | } |
616 | } | 616 | } |
@@ -735,7 +735,7 @@ namespace WixToolset.Sql | |||
735 | } | 735 | } |
736 | 736 | ||
737 | sqlDb = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 737 | sqlDb = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
738 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SqlTupleDefinitions.SqlDatabase, sqlDb); | 738 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SqlSymbolDefinitions.SqlDatabase, sqlDb); |
739 | break; | 739 | break; |
740 | case "User": | 740 | case "User": |
741 | user = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 741 | user = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
@@ -779,7 +779,7 @@ namespace WixToolset.Sql | |||
779 | 779 | ||
780 | if (!this.Messaging.EncounteredError) | 780 | if (!this.Messaging.EncounteredError) |
781 | { | 781 | { |
782 | var tuple = section.AddTuple(new SqlStringTuple(sourceLineNumbers, id) | 782 | var symbol = section.AddSymbol(new SqlStringSymbol(sourceLineNumbers, id) |
783 | { | 783 | { |
784 | SqlDbRef = sqlDb, | 784 | SqlDbRef = sqlDb, |
785 | ComponentRef = componentId, | 785 | ComponentRef = componentId, |
@@ -790,15 +790,15 @@ namespace WixToolset.Sql | |||
790 | 790 | ||
791 | if (CompilerConstants.IntegerNotSet != sequence) | 791 | if (CompilerConstants.IntegerNotSet != sequence) |
792 | { | 792 | { |
793 | tuple.Sequence = sequence; | 793 | symbol.Sequence = sequence; |
794 | } | 794 | } |
795 | } | 795 | } |
796 | } | 796 | } |
797 | 797 | ||
798 | private void AddReferenceToInstallSqlData(IntermediateSection section, SourceLineNumber sourceLineNumbers) | 798 | private void AddReferenceToInstallSqlData(IntermediateSection section, SourceLineNumber sourceLineNumbers) |
799 | { | 799 | { |
800 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.CustomAction, "InstallSqlData"); | 800 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.CustomAction, "InstallSqlData"); |
801 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.CustomAction, "UninstallSqlData"); | 801 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.CustomAction, "UninstallSqlData"); |
802 | } | 802 | } |
803 | } | 803 | } |
804 | } | 804 | } |
diff --git a/src/wixext/SqlExtensionData.cs b/src/wixext/SqlExtensionData.cs index e27b698f..60de94fe 100644 --- a/src/wixext/SqlExtensionData.cs +++ b/src/wixext/SqlExtensionData.cs | |||
@@ -16,15 +16,15 @@ namespace WixToolset.Sql | |||
16 | /// <value>The default culture.</value> | 16 | /// <value>The default culture.</value> |
17 | public override string DefaultCulture => "en-US"; | 17 | public override string DefaultCulture => "en-US"; |
18 | 18 | ||
19 | public override bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) | 19 | public override bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition) |
20 | { | 20 | { |
21 | tupleDefinition = SqlTupleDefinitions.ByName(name); | 21 | symbolDefinition = SqlSymbolDefinitions.ByName(name); |
22 | return tupleDefinition != null; | 22 | return symbolDefinition != null; |
23 | } | 23 | } |
24 | 24 | ||
25 | public override Intermediate GetLibrary(ITupleDefinitionCreator tupleDefinitions) | 25 | public override Intermediate GetLibrary(ISymbolDefinitionCreator symbolDefinitions) |
26 | { | 26 | { |
27 | return Intermediate.Load(typeof(SqlExtensionData).Assembly, "WixToolset.Sql.sql.wixlib", tupleDefinitions); | 27 | return Intermediate.Load(typeof(SqlExtensionData).Assembly, "WixToolset.Sql.sql.wixlib", symbolDefinitions); |
28 | } | 28 | } |
29 | } | 29 | } |
30 | } | 30 | } |
diff --git a/src/wixext/SqlTableDefinitions.cs b/src/wixext/SqlTableDefinitions.cs index 3d1daee0..0ab6f989 100644 --- a/src/wixext/SqlTableDefinitions.cs +++ b/src/wixext/SqlTableDefinitions.cs | |||
@@ -8,7 +8,7 @@ namespace WixToolset.Sql | |||
8 | { | 8 | { |
9 | public static readonly TableDefinition SqlDatabase = new TableDefinition( | 9 | public static readonly TableDefinition SqlDatabase = new TableDefinition( |
10 | "SqlDatabase", | 10 | "SqlDatabase", |
11 | SqlTupleDefinitions.SqlDatabase, | 11 | SqlSymbolDefinitions.SqlDatabase, |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new ColumnDefinition("SqlDb", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Primary key, non-localized token", modularizeType: ColumnModularizeType.Column), | 14 | new ColumnDefinition("SqlDb", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Primary key, non-localized token", modularizeType: ColumnModularizeType.Column), |
@@ -21,12 +21,12 @@ namespace WixToolset.Sql | |||
21 | new ColumnDefinition("FileSpec_Log", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Identifier, keyTable: "SqlFileSpec", keyColumn: 1, description: "Foreign key referencing SqlFileSpec.", modularizeType: ColumnModularizeType.Column), | 21 | new ColumnDefinition("FileSpec_Log", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Identifier, keyTable: "SqlFileSpec", keyColumn: 1, description: "Foreign key referencing SqlFileSpec.", modularizeType: ColumnModularizeType.Column), |
22 | new ColumnDefinition("Attributes", ColumnType.Number, 2, primaryKey: false, nullable: true, ColumnCategory.Unknown, minValue: 0, maxValue: 255, description: "1 == create on install, 2 == drop on uninstall, 4 == continue on error, 8 == drop on install, 16 == create on uninstall, 32 == confirm update existing table, 64 == create on reinstall, 128 == drop on reinstall"), | 22 | new ColumnDefinition("Attributes", ColumnType.Number, 2, primaryKey: false, nullable: true, ColumnCategory.Unknown, minValue: 0, maxValue: 255, description: "1 == create on install, 2 == drop on uninstall, 4 == continue on error, 8 == drop on install, 16 == create on uninstall, 32 == confirm update existing table, 64 == create on reinstall, 128 == drop on reinstall"), |
23 | }, | 23 | }, |
24 | tupleIdIsPrimaryKey: true | 24 | symbolIdIsPrimaryKey: true |
25 | ); | 25 | ); |
26 | 26 | ||
27 | public static readonly TableDefinition SqlFileSpec = new TableDefinition( | 27 | public static readonly TableDefinition SqlFileSpec = new TableDefinition( |
28 | "SqlFileSpec", | 28 | "SqlFileSpec", |
29 | SqlTupleDefinitions.SqlFileSpec, | 29 | SqlSymbolDefinitions.SqlFileSpec, |
30 | new[] | 30 | new[] |
31 | { | 31 | { |
32 | new ColumnDefinition("FileSpec", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Primary key, non-localized token", modularizeType: ColumnModularizeType.Column), | 32 | new ColumnDefinition("FileSpec", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Primary key, non-localized token", modularizeType: ColumnModularizeType.Column), |
@@ -36,12 +36,12 @@ namespace WixToolset.Sql | |||
36 | new ColumnDefinition("MaxSize", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Formatted, description: "Maximum size for file", modularizeType: ColumnModularizeType.Property), | 36 | new ColumnDefinition("MaxSize", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Formatted, description: "Maximum size for file", modularizeType: ColumnModularizeType.Property), |
37 | new ColumnDefinition("GrowthSize", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Formatted, description: "Size file should grow when necessary", modularizeType: ColumnModularizeType.Property), | 37 | new ColumnDefinition("GrowthSize", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Formatted, description: "Size file should grow when necessary", modularizeType: ColumnModularizeType.Property), |
38 | }, | 38 | }, |
39 | tupleIdIsPrimaryKey: true | 39 | symbolIdIsPrimaryKey: true |
40 | ); | 40 | ); |
41 | 41 | ||
42 | public static readonly TableDefinition SqlScript = new TableDefinition( | 42 | public static readonly TableDefinition SqlScript = new TableDefinition( |
43 | "SqlScript", | 43 | "SqlScript", |
44 | SqlTupleDefinitions.SqlScript, | 44 | SqlSymbolDefinitions.SqlScript, |
45 | new[] | 45 | new[] |
46 | { | 46 | { |
47 | new ColumnDefinition("Script", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Primary key, non-localized token"), | 47 | new ColumnDefinition("Script", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Primary key, non-localized token"), |
@@ -52,12 +52,12 @@ namespace WixToolset.Sql | |||
52 | new ColumnDefinition("Attributes", ColumnType.Number, 2, primaryKey: false, nullable: false, ColumnCategory.Unknown, possibilities: "1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31", description: "1 == execute on install, 2 == execute on uninstall, 4 == continue on error, 8 == rollback on install, 16 == rollback on uninstall"), | 52 | new ColumnDefinition("Attributes", ColumnType.Number, 2, primaryKey: false, nullable: false, ColumnCategory.Unknown, possibilities: "1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31", description: "1 == execute on install, 2 == execute on uninstall, 4 == continue on error, 8 == rollback on install, 16 == rollback on uninstall"), |
53 | new ColumnDefinition("Sequence", ColumnType.Number, 2, primaryKey: false, nullable: true, ColumnCategory.Unknown, description: "Order to execute SQL Queries in"), | 53 | new ColumnDefinition("Sequence", ColumnType.Number, 2, primaryKey: false, nullable: true, ColumnCategory.Unknown, description: "Order to execute SQL Queries in"), |
54 | }, | 54 | }, |
55 | tupleIdIsPrimaryKey: true | 55 | symbolIdIsPrimaryKey: true |
56 | ); | 56 | ); |
57 | 57 | ||
58 | public static readonly TableDefinition SqlString = new TableDefinition( | 58 | public static readonly TableDefinition SqlString = new TableDefinition( |
59 | "SqlString", | 59 | "SqlString", |
60 | SqlTupleDefinitions.SqlString, | 60 | SqlSymbolDefinitions.SqlString, |
61 | new[] | 61 | new[] |
62 | { | 62 | { |
63 | new ColumnDefinition("String", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Id for the SqlString", modularizeType: ColumnModularizeType.Column), | 63 | new ColumnDefinition("String", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Id for the SqlString", modularizeType: ColumnModularizeType.Column), |
@@ -68,7 +68,7 @@ namespace WixToolset.Sql | |||
68 | new ColumnDefinition("Attributes", ColumnType.Number, 2, primaryKey: false, nullable: false, ColumnCategory.Unknown, possibilities: "1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31", description: "1 == execute on install, 2 == execute on uninstall, 4 == continue on error, 8 == rollback on install, 16 == rollback on uninstall"), | 68 | new ColumnDefinition("Attributes", ColumnType.Number, 2, primaryKey: false, nullable: false, ColumnCategory.Unknown, possibilities: "1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31", description: "1 == execute on install, 2 == execute on uninstall, 4 == continue on error, 8 == rollback on install, 16 == rollback on uninstall"), |
69 | new ColumnDefinition("Sequence", ColumnType.Number, 2, primaryKey: false, nullable: true, ColumnCategory.Unknown, description: "Order to execute SQL Queries in"), | 69 | new ColumnDefinition("Sequence", ColumnType.Number, 2, primaryKey: false, nullable: true, ColumnCategory.Unknown, description: "Order to execute SQL Queries in"), |
70 | }, | 70 | }, |
71 | tupleIdIsPrimaryKey: true | 71 | symbolIdIsPrimaryKey: true |
72 | ); | 72 | ); |
73 | 73 | ||
74 | public static readonly TableDefinition[] All = new[] | 74 | public static readonly TableDefinition[] All = new[] |
diff --git a/src/wixext/Tuples/SqlDatabaseTuple.cs b/src/wixext/Tuples/SqlDatabaseTuple.cs index 1e056212..6f0820ac 100644 --- a/src/wixext/Tuples/SqlDatabaseTuple.cs +++ b/src/wixext/Tuples/SqlDatabaseTuple.cs | |||
@@ -3,32 +3,32 @@ | |||
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 SqlDatabase = new IntermediateTupleDefinition( | 10 | public static readonly IntermediateSymbolDefinition SqlDatabase = new IntermediateSymbolDefinition( |
11 | SqlTupleDefinitionType.SqlDatabase.ToString(), | 11 | SqlSymbolDefinitionType.SqlDatabase.ToString(), |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new IntermediateFieldDefinition(nameof(SqlDatabaseTupleFields.Server), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(SqlDatabaseSymbolFields.Server), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(SqlDatabaseTupleFields.Instance), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(SqlDatabaseSymbolFields.Instance), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(SqlDatabaseTupleFields.Database), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(SqlDatabaseSymbolFields.Database), IntermediateFieldType.String), |
17 | new IntermediateFieldDefinition(nameof(SqlDatabaseTupleFields.ComponentRef), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(SqlDatabaseSymbolFields.ComponentRef), IntermediateFieldType.String), |
18 | new IntermediateFieldDefinition(nameof(SqlDatabaseTupleFields.UserRef), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(SqlDatabaseSymbolFields.UserRef), IntermediateFieldType.String), |
19 | new IntermediateFieldDefinition(nameof(SqlDatabaseTupleFields.FileSpecRef), IntermediateFieldType.String), | 19 | new IntermediateFieldDefinition(nameof(SqlDatabaseSymbolFields.FileSpecRef), IntermediateFieldType.String), |
20 | new IntermediateFieldDefinition(nameof(SqlDatabaseTupleFields.LogFileSpecRef), IntermediateFieldType.String), | 20 | new IntermediateFieldDefinition(nameof(SqlDatabaseSymbolFields.LogFileSpecRef), IntermediateFieldType.String), |
21 | new IntermediateFieldDefinition(nameof(SqlDatabaseTupleFields.Attributes), IntermediateFieldType.Number), | 21 | new IntermediateFieldDefinition(nameof(SqlDatabaseSymbolFields.Attributes), IntermediateFieldType.Number), |
22 | }, | 22 | }, |
23 | typeof(SqlDatabaseTuple)); | 23 | typeof(SqlDatabaseSymbol)); |
24 | } | 24 | } |
25 | } | 25 | } |
26 | 26 | ||
27 | namespace WixToolset.Sql.Tuples | 27 | namespace WixToolset.Sql.Symbols |
28 | { | 28 | { |
29 | using WixToolset.Data; | 29 | using WixToolset.Data; |
30 | 30 | ||
31 | public enum SqlDatabaseTupleFields | 31 | public enum SqlDatabaseSymbolFields |
32 | { | 32 | { |
33 | Server, | 33 | Server, |
34 | Instance, | 34 | Instance, |
@@ -40,64 +40,64 @@ namespace WixToolset.Sql.Tuples | |||
40 | Attributes, | 40 | Attributes, |
41 | } | 41 | } |
42 | 42 | ||
43 | public class SqlDatabaseTuple : IntermediateTuple | 43 | public class SqlDatabaseSymbol : IntermediateSymbol |
44 | { | 44 | { |
45 | public SqlDatabaseTuple() : base(SqlTupleDefinitions.SqlDatabase, null, null) | 45 | public SqlDatabaseSymbol() : base(SqlSymbolDefinitions.SqlDatabase, null, null) |
46 | { | 46 | { |
47 | } | 47 | } |
48 | 48 | ||
49 | public SqlDatabaseTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SqlTupleDefinitions.SqlDatabase, sourceLineNumber, id) | 49 | public SqlDatabaseSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SqlSymbolDefinitions.SqlDatabase, sourceLineNumber, id) |
50 | { | 50 | { |
51 | } | 51 | } |
52 | 52 | ||
53 | public IntermediateField this[SqlDatabaseTupleFields index] => this.Fields[(int)index]; | 53 | public IntermediateField this[SqlDatabaseSymbolFields index] => this.Fields[(int)index]; |
54 | 54 | ||
55 | public string Server | 55 | public string Server |
56 | { | 56 | { |
57 | get => this.Fields[(int)SqlDatabaseTupleFields.Server].AsString(); | 57 | get => this.Fields[(int)SqlDatabaseSymbolFields.Server].AsString(); |
58 | set => this.Set((int)SqlDatabaseTupleFields.Server, value); | 58 | set => this.Set((int)SqlDatabaseSymbolFields.Server, value); |
59 | } | 59 | } |
60 | 60 | ||
61 | public string Instance | 61 | public string Instance |
62 | { | 62 | { |
63 | get => this.Fields[(int)SqlDatabaseTupleFields.Instance].AsString(); | 63 | get => this.Fields[(int)SqlDatabaseSymbolFields.Instance].AsString(); |
64 | set => this.Set((int)SqlDatabaseTupleFields.Instance, value); | 64 | set => this.Set((int)SqlDatabaseSymbolFields.Instance, value); |
65 | } | 65 | } |
66 | 66 | ||
67 | public string Database | 67 | public string Database |
68 | { | 68 | { |
69 | get => this.Fields[(int)SqlDatabaseTupleFields.Database].AsString(); | 69 | get => this.Fields[(int)SqlDatabaseSymbolFields.Database].AsString(); |
70 | set => this.Set((int)SqlDatabaseTupleFields.Database, value); | 70 | set => this.Set((int)SqlDatabaseSymbolFields.Database, value); |
71 | } | 71 | } |
72 | 72 | ||
73 | public string ComponentRef | 73 | public string ComponentRef |
74 | { | 74 | { |
75 | get => this.Fields[(int)SqlDatabaseTupleFields.ComponentRef].AsString(); | 75 | get => this.Fields[(int)SqlDatabaseSymbolFields.ComponentRef].AsString(); |
76 | set => this.Set((int)SqlDatabaseTupleFields.ComponentRef, value); | 76 | set => this.Set((int)SqlDatabaseSymbolFields.ComponentRef, value); |
77 | } | 77 | } |
78 | 78 | ||
79 | public string UserRef | 79 | public string UserRef |
80 | { | 80 | { |
81 | get => this.Fields[(int)SqlDatabaseTupleFields.UserRef].AsString(); | 81 | get => this.Fields[(int)SqlDatabaseSymbolFields.UserRef].AsString(); |
82 | set => this.Set((int)SqlDatabaseTupleFields.UserRef, value); | 82 | set => this.Set((int)SqlDatabaseSymbolFields.UserRef, value); |
83 | } | 83 | } |
84 | 84 | ||
85 | public string FileSpecRef | 85 | public string FileSpecRef |
86 | { | 86 | { |
87 | get => this.Fields[(int)SqlDatabaseTupleFields.FileSpecRef].AsString(); | 87 | get => this.Fields[(int)SqlDatabaseSymbolFields.FileSpecRef].AsString(); |
88 | set => this.Set((int)SqlDatabaseTupleFields.FileSpecRef, value); | 88 | set => this.Set((int)SqlDatabaseSymbolFields.FileSpecRef, value); |
89 | } | 89 | } |
90 | 90 | ||
91 | public string LogFileSpecRef | 91 | public string LogFileSpecRef |
92 | { | 92 | { |
93 | get => this.Fields[(int)SqlDatabaseTupleFields.LogFileSpecRef].AsString(); | 93 | get => this.Fields[(int)SqlDatabaseSymbolFields.LogFileSpecRef].AsString(); |
94 | set => this.Set((int)SqlDatabaseTupleFields.LogFileSpecRef, value); | 94 | set => this.Set((int)SqlDatabaseSymbolFields.LogFileSpecRef, value); |
95 | } | 95 | } |
96 | 96 | ||
97 | public int Attributes | 97 | public int Attributes |
98 | { | 98 | { |
99 | get => this.Fields[(int)SqlDatabaseTupleFields.Attributes].AsNumber(); | 99 | get => this.Fields[(int)SqlDatabaseSymbolFields.Attributes].AsNumber(); |
100 | set => this.Set((int)SqlDatabaseTupleFields.Attributes, value); | 100 | set => this.Set((int)SqlDatabaseSymbolFields.Attributes, value); |
101 | } | 101 | } |
102 | } | 102 | } |
103 | } \ No newline at end of file | 103 | } \ No newline at end of file |
diff --git a/src/wixext/Tuples/SqlFileSpecTuple.cs b/src/wixext/Tuples/SqlFileSpecTuple.cs index 98a3002b..d9eecc62 100644 --- a/src/wixext/Tuples/SqlFileSpecTuple.cs +++ b/src/wixext/Tuples/SqlFileSpecTuple.cs | |||
@@ -3,29 +3,29 @@ | |||
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 SqlFileSpec = new IntermediateTupleDefinition( | 10 | public static readonly IntermediateSymbolDefinition SqlFileSpec = new IntermediateSymbolDefinition( |
11 | SqlTupleDefinitionType.SqlFileSpec.ToString(), | 11 | SqlSymbolDefinitionType.SqlFileSpec.ToString(), |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new IntermediateFieldDefinition(nameof(SqlFileSpecTupleFields.Name), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(SqlFileSpecSymbolFields.Name), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(SqlFileSpecTupleFields.Filename), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(SqlFileSpecSymbolFields.Filename), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(SqlFileSpecTupleFields.Size), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(SqlFileSpecSymbolFields.Size), IntermediateFieldType.String), |
17 | new IntermediateFieldDefinition(nameof(SqlFileSpecTupleFields.MaxSize), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(SqlFileSpecSymbolFields.MaxSize), IntermediateFieldType.String), |
18 | new IntermediateFieldDefinition(nameof(SqlFileSpecTupleFields.GrowthSize), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(SqlFileSpecSymbolFields.GrowthSize), IntermediateFieldType.String), |
19 | }, | 19 | }, |
20 | typeof(SqlFileSpecTuple)); | 20 | typeof(SqlFileSpecSymbol)); |
21 | } | 21 | } |
22 | } | 22 | } |
23 | 23 | ||
24 | namespace WixToolset.Sql.Tuples | 24 | namespace WixToolset.Sql.Symbols |
25 | { | 25 | { |
26 | using WixToolset.Data; | 26 | using WixToolset.Data; |
27 | 27 | ||
28 | public enum SqlFileSpecTupleFields | 28 | public enum SqlFileSpecSymbolFields |
29 | { | 29 | { |
30 | Name, | 30 | Name, |
31 | Filename, | 31 | Filename, |
@@ -34,46 +34,46 @@ namespace WixToolset.Sql.Tuples | |||
34 | GrowthSize, | 34 | GrowthSize, |
35 | } | 35 | } |
36 | 36 | ||
37 | public class SqlFileSpecTuple : IntermediateTuple | 37 | public class SqlFileSpecSymbol : IntermediateSymbol |
38 | { | 38 | { |
39 | public SqlFileSpecTuple() : base(SqlTupleDefinitions.SqlFileSpec, null, null) | 39 | public SqlFileSpecSymbol() : base(SqlSymbolDefinitions.SqlFileSpec, null, null) |
40 | { | 40 | { |
41 | } | 41 | } |
42 | 42 | ||
43 | public SqlFileSpecTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SqlTupleDefinitions.SqlFileSpec, sourceLineNumber, id) | 43 | public SqlFileSpecSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SqlSymbolDefinitions.SqlFileSpec, sourceLineNumber, id) |
44 | { | 44 | { |
45 | } | 45 | } |
46 | 46 | ||
47 | public IntermediateField this[SqlFileSpecTupleFields index] => this.Fields[(int)index]; | 47 | public IntermediateField this[SqlFileSpecSymbolFields index] => this.Fields[(int)index]; |
48 | 48 | ||
49 | public string Name | 49 | public string Name |
50 | { | 50 | { |
51 | get => this.Fields[(int)SqlFileSpecTupleFields.Name].AsString(); | 51 | get => this.Fields[(int)SqlFileSpecSymbolFields.Name].AsString(); |
52 | set => this.Set((int)SqlFileSpecTupleFields.Name, value); | 52 | set => this.Set((int)SqlFileSpecSymbolFields.Name, value); |
53 | } | 53 | } |
54 | 54 | ||
55 | public string Filename | 55 | public string Filename |
56 | { | 56 | { |
57 | get => this.Fields[(int)SqlFileSpecTupleFields.Filename].AsString(); | 57 | get => this.Fields[(int)SqlFileSpecSymbolFields.Filename].AsString(); |
58 | set => this.Set((int)SqlFileSpecTupleFields.Filename, value); | 58 | set => this.Set((int)SqlFileSpecSymbolFields.Filename, value); |
59 | } | 59 | } |
60 | 60 | ||
61 | public string Size | 61 | public string Size |
62 | { | 62 | { |
63 | get => this.Fields[(int)SqlFileSpecTupleFields.Size].AsString(); | 63 | get => this.Fields[(int)SqlFileSpecSymbolFields.Size].AsString(); |
64 | set => this.Set((int)SqlFileSpecTupleFields.Size, value); | 64 | set => this.Set((int)SqlFileSpecSymbolFields.Size, value); |
65 | } | 65 | } |
66 | 66 | ||
67 | public string MaxSize | 67 | public string MaxSize |
68 | { | 68 | { |
69 | get => this.Fields[(int)SqlFileSpecTupleFields.MaxSize].AsString(); | 69 | get => this.Fields[(int)SqlFileSpecSymbolFields.MaxSize].AsString(); |
70 | set => this.Set((int)SqlFileSpecTupleFields.MaxSize, value); | 70 | set => this.Set((int)SqlFileSpecSymbolFields.MaxSize, value); |
71 | } | 71 | } |
72 | 72 | ||
73 | public string GrowthSize | 73 | public string GrowthSize |
74 | { | 74 | { |
75 | get => this.Fields[(int)SqlFileSpecTupleFields.GrowthSize].AsString(); | 75 | get => this.Fields[(int)SqlFileSpecSymbolFields.GrowthSize].AsString(); |
76 | set => this.Set((int)SqlFileSpecTupleFields.GrowthSize, value); | 76 | set => this.Set((int)SqlFileSpecSymbolFields.GrowthSize, value); |
77 | } | 77 | } |
78 | } | 78 | } |
79 | } \ No newline at end of file | 79 | } \ No newline at end of file |
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 |
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 @@ | |||
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 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 | ||
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 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 |
diff --git a/src/wixext/Tuples/SqlTupleDefinitions.cs b/src/wixext/Tuples/SqlTupleDefinitions.cs index b99b96a7..336f1546 100644 --- a/src/wixext/Tuples/SqlTupleDefinitions.cs +++ b/src/wixext/Tuples/SqlTupleDefinitions.cs | |||
@@ -5,7 +5,7 @@ namespace WixToolset.Sql | |||
5 | using System; | 5 | using System; |
6 | using WixToolset.Data; | 6 | using WixToolset.Data; |
7 | 7 | ||
8 | public enum SqlTupleDefinitionType | 8 | public enum SqlSymbolDefinitionType |
9 | { | 9 | { |
10 | SqlDatabase, | 10 | SqlDatabase, |
11 | SqlFileSpec, | 11 | SqlFileSpec, |
@@ -13,13 +13,13 @@ namespace WixToolset.Sql | |||
13 | SqlString, | 13 | SqlString, |
14 | } | 14 | } |
15 | 15 | ||
16 | public static partial class SqlTupleDefinitions | 16 | public static partial class SqlSymbolDefinitions |
17 | { | 17 | { |
18 | public static readonly Version Version = new Version("4.0.0"); | 18 | public static readonly Version Version = new Version("4.0.0"); |
19 | 19 | ||
20 | public static IntermediateTupleDefinition ByName(string name) | 20 | public static IntermediateSymbolDefinition ByName(string name) |
21 | { | 21 | { |
22 | if (!Enum.TryParse(name, out SqlTupleDefinitionType type)) | 22 | if (!Enum.TryParse(name, out SqlSymbolDefinitionType type)) |
23 | { | 23 | { |
24 | return null; | 24 | return null; |
25 | } | 25 | } |
@@ -27,21 +27,21 @@ namespace WixToolset.Sql | |||
27 | return ByType(type); | 27 | return ByType(type); |
28 | } | 28 | } |
29 | 29 | ||
30 | public static IntermediateTupleDefinition ByType(SqlTupleDefinitionType type) | 30 | public static IntermediateSymbolDefinition ByType(SqlSymbolDefinitionType type) |
31 | { | 31 | { |
32 | switch (type) | 32 | switch (type) |
33 | { | 33 | { |
34 | case SqlTupleDefinitionType.SqlDatabase: | 34 | case SqlSymbolDefinitionType.SqlDatabase: |
35 | return SqlTupleDefinitions.SqlDatabase; | 35 | return SqlSymbolDefinitions.SqlDatabase; |
36 | 36 | ||
37 | case SqlTupleDefinitionType.SqlFileSpec: | 37 | case SqlSymbolDefinitionType.SqlFileSpec: |
38 | return SqlTupleDefinitions.SqlFileSpec; | 38 | return SqlSymbolDefinitions.SqlFileSpec; |
39 | 39 | ||
40 | case SqlTupleDefinitionType.SqlScript: | 40 | case SqlSymbolDefinitionType.SqlScript: |
41 | return SqlTupleDefinitions.SqlScript; | 41 | return SqlSymbolDefinitions.SqlScript; |
42 | 42 | ||
43 | case SqlTupleDefinitionType.SqlString: | 43 | case SqlSymbolDefinitionType.SqlString: |
44 | return SqlTupleDefinitions.SqlString; | 44 | return SqlSymbolDefinitions.SqlString; |
45 | 45 | ||
46 | default: | 46 | default: |
47 | throw new ArgumentOutOfRangeException(nameof(type)); | 47 | throw new ArgumentOutOfRangeException(nameof(type)); |