aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/SqlTupleDefinitions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/SqlTupleDefinitions.cs')
-rw-r--r--src/wixext/Tuples/SqlTupleDefinitions.cs26
1 files changed, 13 insertions, 13 deletions
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));