diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs b/src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs index 21a5ca9c..6af140bd 100644 --- a/src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs +++ b/src/WixToolset.Data/Tuples/ODBCDataSourceTuple.cs | |||
| @@ -2,26 +2,26 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Data | 3 | namespace WixToolset.Data |
| 4 | { | 4 | { |
| 5 | using WixToolset.Data.Tuples; | 5 | using WixToolset.Data.Symbols; |
| 6 | 6 | ||
| 7 | public static partial class TupleDefinitions | 7 | public static partial class SymbolDefinitions |
| 8 | { | 8 | { |
| 9 | public static readonly IntermediateTupleDefinition ODBCDataSource = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition ODBCDataSource = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.ODBCDataSource, | 10 | SymbolDefinitionType.ODBCDataSource, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(ODBCDataSourceTupleFields.ComponentRef), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.ComponentRef), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(ODBCDataSourceTupleFields.Description), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.Description), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(ODBCDataSourceTupleFields.DriverDescription), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.DriverDescription), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(ODBCDataSourceTupleFields.Registration), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(ODBCDataSourceSymbolFields.Registration), IntermediateFieldType.Number), |
| 17 | }, | 17 | }, |
| 18 | typeof(ODBCDataSourceTuple)); | 18 | typeof(ODBCDataSourceSymbol)); |
| 19 | } | 19 | } |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | namespace WixToolset.Data.Tuples | 22 | namespace WixToolset.Data.Symbols |
| 23 | { | 23 | { |
| 24 | public enum ODBCDataSourceTupleFields | 24 | public enum ODBCDataSourceSymbolFields |
| 25 | { | 25 | { |
| 26 | ComponentRef, | 26 | ComponentRef, |
| 27 | Description, | 27 | Description, |
| @@ -29,40 +29,40 @@ namespace WixToolset.Data.Tuples | |||
| 29 | Registration, | 29 | Registration, |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | public class ODBCDataSourceTuple : IntermediateTuple | 32 | public class ODBCDataSourceSymbol : IntermediateSymbol |
| 33 | { | 33 | { |
| 34 | public ODBCDataSourceTuple() : base(TupleDefinitions.ODBCDataSource, null, null) | 34 | public ODBCDataSourceSymbol() : base(SymbolDefinitions.ODBCDataSource, null, null) |
| 35 | { | 35 | { |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | public ODBCDataSourceTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ODBCDataSource, sourceLineNumber, id) | 38 | public ODBCDataSourceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCDataSource, sourceLineNumber, id) |
| 39 | { | 39 | { |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | public IntermediateField this[ODBCDataSourceTupleFields index] => this.Fields[(int)index]; | 42 | public IntermediateField this[ODBCDataSourceSymbolFields index] => this.Fields[(int)index]; |
| 43 | 43 | ||
| 44 | public string ComponentRef | 44 | public string ComponentRef |
| 45 | { | 45 | { |
| 46 | get => (string)this.Fields[(int)ODBCDataSourceTupleFields.ComponentRef]; | 46 | get => (string)this.Fields[(int)ODBCDataSourceSymbolFields.ComponentRef]; |
| 47 | set => this.Set((int)ODBCDataSourceTupleFields.ComponentRef, value); | 47 | set => this.Set((int)ODBCDataSourceSymbolFields.ComponentRef, value); |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | public string Description | 50 | public string Description |
| 51 | { | 51 | { |
| 52 | get => (string)this.Fields[(int)ODBCDataSourceTupleFields.Description]; | 52 | get => (string)this.Fields[(int)ODBCDataSourceSymbolFields.Description]; |
| 53 | set => this.Set((int)ODBCDataSourceTupleFields.Description, value); | 53 | set => this.Set((int)ODBCDataSourceSymbolFields.Description, value); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | public string DriverDescription | 56 | public string DriverDescription |
| 57 | { | 57 | { |
| 58 | get => (string)this.Fields[(int)ODBCDataSourceTupleFields.DriverDescription]; | 58 | get => (string)this.Fields[(int)ODBCDataSourceSymbolFields.DriverDescription]; |
| 59 | set => this.Set((int)ODBCDataSourceTupleFields.DriverDescription, value); | 59 | set => this.Set((int)ODBCDataSourceSymbolFields.DriverDescription, value); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | public int Registration | 62 | public int Registration |
| 63 | { | 63 | { |
| 64 | get => (int)this.Fields[(int)ODBCDataSourceTupleFields.Registration]; | 64 | get => (int)this.Fields[(int)ODBCDataSourceSymbolFields.Registration]; |
| 65 | set => this.Set((int)ODBCDataSourceTupleFields.Registration, value); | 65 | set => this.Set((int)ODBCDataSourceSymbolFields.Registration, value); |
| 66 | } | 66 | } |
| 67 | } | 67 | } |
| 68 | } | 68 | } |
