diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixCustomTableColumnTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixCustomTableColumnTuple.cs | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/src/WixToolset.Data/Tuples/WixCustomTableColumnTuple.cs b/src/WixToolset.Data/Tuples/WixCustomTableColumnTuple.cs index 8f3cf571..9ae2a904 100644 --- a/src/WixToolset.Data/Tuples/WixCustomTableColumnTuple.cs +++ b/src/WixToolset.Data/Tuples/WixCustomTableColumnTuple.cs | |||
| @@ -2,37 +2,37 @@ | |||
| 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 WixCustomTableColumn = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition WixCustomTableColumn = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.WixCustomTableColumn, | 10 | SymbolDefinitionType.WixCustomTableColumn, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.TableRef), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.TableRef), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.Name), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Name), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.Type), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Type), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.Attributes), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Attributes), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.Width), IntermediateFieldType.Number), | 17 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Width), IntermediateFieldType.Number), |
| 18 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.MinValue), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.MinValue), IntermediateFieldType.String), |
| 19 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.MaxValue), IntermediateFieldType.String), | 19 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.MaxValue), IntermediateFieldType.String), |
| 20 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.KeyTable), IntermediateFieldType.String), | 20 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.KeyTable), IntermediateFieldType.String), |
| 21 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.KeyColumn), IntermediateFieldType.String), | 21 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.KeyColumn), IntermediateFieldType.String), |
| 22 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.Category), IntermediateFieldType.String), | 22 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Category), IntermediateFieldType.String), |
| 23 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.Set), IntermediateFieldType.String), | 23 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Set), IntermediateFieldType.String), |
| 24 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.Description), IntermediateFieldType.String), | 24 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Description), IntermediateFieldType.String), |
| 25 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnTupleFields.Modularize), IntermediateFieldType.Number) | 25 | new IntermediateFieldDefinition(nameof(WixCustomTableColumnSymbolFields.Modularize), IntermediateFieldType.Number) |
| 26 | }, | 26 | }, |
| 27 | typeof(WixCustomTableColumnTuple)); | 27 | typeof(WixCustomTableColumnSymbol)); |
| 28 | } | 28 | } |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | namespace WixToolset.Data.Tuples | 31 | namespace WixToolset.Data.Symbols |
| 32 | { | 32 | { |
| 33 | using System; | 33 | using System; |
| 34 | 34 | ||
| 35 | public enum WixCustomTableColumnTupleFields | 35 | public enum WixCustomTableColumnSymbolFields |
| 36 | { | 36 | { |
| 37 | TableRef, | 37 | TableRef, |
| 38 | Name, | 38 | Name, |
| @@ -50,7 +50,7 @@ namespace WixToolset.Data.Tuples | |||
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | [Flags] | 52 | [Flags] |
| 53 | public enum WixCustomTableColumnTupleAttributes | 53 | public enum WixCustomTableColumnSymbolAttributes |
| 54 | { | 54 | { |
| 55 | None = 0x0, | 55 | None = 0x0, |
| 56 | PrimaryKey = 0x1, | 56 | PrimaryKey = 0x1, |
| @@ -102,102 +102,102 @@ namespace WixToolset.Data.Tuples | |||
| 102 | SemicolonDelimited, | 102 | SemicolonDelimited, |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | public class WixCustomTableColumnTuple : IntermediateTuple | 105 | public class WixCustomTableColumnSymbol : IntermediateSymbol |
| 106 | { | 106 | { |
| 107 | public WixCustomTableColumnTuple() : base(TupleDefinitions.WixCustomTableColumn, null, null) | 107 | public WixCustomTableColumnSymbol() : base(SymbolDefinitions.WixCustomTableColumn, null, null) |
| 108 | { | 108 | { |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | public WixCustomTableColumnTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixCustomTableColumn, sourceLineNumber, id) | 111 | public WixCustomTableColumnSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixCustomTableColumn, sourceLineNumber, id) |
| 112 | { | 112 | { |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | public IntermediateField this[WixCustomTableColumnTupleFields index] => this.Fields[(int)index]; | 115 | public IntermediateField this[WixCustomTableColumnSymbolFields index] => this.Fields[(int)index]; |
| 116 | 116 | ||
| 117 | public string TableRef | 117 | public string TableRef |
| 118 | { | 118 | { |
| 119 | get => (string)this.Fields[(int)WixCustomTableColumnTupleFields.TableRef]; | 119 | get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.TableRef]; |
| 120 | set => this.Set((int)WixCustomTableColumnTupleFields.TableRef, value); | 120 | set => this.Set((int)WixCustomTableColumnSymbolFields.TableRef, value); |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | public string Name | 123 | public string Name |
| 124 | { | 124 | { |
| 125 | get => (string)this.Fields[(int)WixCustomTableColumnTupleFields.Name]; | 125 | get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.Name]; |
| 126 | set => this.Set((int)WixCustomTableColumnTupleFields.Name, value); | 126 | set => this.Set((int)WixCustomTableColumnSymbolFields.Name, value); |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | public IntermediateFieldType Type | 129 | public IntermediateFieldType Type |
| 130 | { | 130 | { |
| 131 | get => (IntermediateFieldType)this.Fields[(int)WixCustomTableColumnTupleFields.Type].AsNumber(); | 131 | get => (IntermediateFieldType)this.Fields[(int)WixCustomTableColumnSymbolFields.Type].AsNumber(); |
| 132 | set => this.Set((int)WixCustomTableColumnTupleFields.Type, (int)value); | 132 | set => this.Set((int)WixCustomTableColumnSymbolFields.Type, (int)value); |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | public WixCustomTableColumnTupleAttributes Attributes | 135 | public WixCustomTableColumnSymbolAttributes Attributes |
| 136 | { | 136 | { |
| 137 | get => (WixCustomTableColumnTupleAttributes)this.Fields[(int)WixCustomTableColumnTupleFields.Attributes].AsNumber(); | 137 | get => (WixCustomTableColumnSymbolAttributes)this.Fields[(int)WixCustomTableColumnSymbolFields.Attributes].AsNumber(); |
| 138 | set => this.Set((int)WixCustomTableColumnTupleFields.Attributes, (int)value); | 138 | set => this.Set((int)WixCustomTableColumnSymbolFields.Attributes, (int)value); |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | public int Width | 141 | public int Width |
| 142 | { | 142 | { |
| 143 | get => (int)this.Fields[(int)WixCustomTableColumnTupleFields.Width]; | 143 | get => (int)this.Fields[(int)WixCustomTableColumnSymbolFields.Width]; |
| 144 | set => this.Set((int)WixCustomTableColumnTupleFields.Width, value); | 144 | set => this.Set((int)WixCustomTableColumnSymbolFields.Width, value); |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | public long? MinValue | 147 | public long? MinValue |
| 148 | { | 148 | { |
| 149 | get => (long?)this.Fields[(int)WixCustomTableColumnTupleFields.MinValue]; | 149 | get => (long?)this.Fields[(int)WixCustomTableColumnSymbolFields.MinValue]; |
| 150 | set => this.Set((int)WixCustomTableColumnTupleFields.MinValue, value); | 150 | set => this.Set((int)WixCustomTableColumnSymbolFields.MinValue, value); |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | public long? MaxValue | 153 | public long? MaxValue |
| 154 | { | 154 | { |
| 155 | get => (long?)this.Fields[(int)WixCustomTableColumnTupleFields.MaxValue]; | 155 | get => (long?)this.Fields[(int)WixCustomTableColumnSymbolFields.MaxValue]; |
| 156 | set => this.Set((int)WixCustomTableColumnTupleFields.MaxValue, value); | 156 | set => this.Set((int)WixCustomTableColumnSymbolFields.MaxValue, value); |
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | public string KeyTable | 159 | public string KeyTable |
| 160 | { | 160 | { |
| 161 | get => (string)this.Fields[(int)WixCustomTableColumnTupleFields.KeyTable]; | 161 | get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.KeyTable]; |
| 162 | set => this.Set((int)WixCustomTableColumnTupleFields.KeyTable, value); | 162 | set => this.Set((int)WixCustomTableColumnSymbolFields.KeyTable, value); |
| 163 | } | 163 | } |
| 164 | 164 | ||
| 165 | public int? KeyColumn | 165 | public int? KeyColumn |
| 166 | { | 166 | { |
| 167 | get => (int?)this.Fields[(int)WixCustomTableColumnTupleFields.KeyColumn]; | 167 | get => (int?)this.Fields[(int)WixCustomTableColumnSymbolFields.KeyColumn]; |
| 168 | set => this.Set((int)WixCustomTableColumnTupleFields.KeyColumn, value); | 168 | set => this.Set((int)WixCustomTableColumnSymbolFields.KeyColumn, value); |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | public WixCustomTableColumnCategoryType? Category | 171 | public WixCustomTableColumnCategoryType? Category |
| 172 | { | 172 | { |
| 173 | get => (WixCustomTableColumnCategoryType?)this.Fields[(int)WixCustomTableColumnTupleFields.Category].AsNullableNumber(); | 173 | get => (WixCustomTableColumnCategoryType?)this.Fields[(int)WixCustomTableColumnSymbolFields.Category].AsNullableNumber(); |
| 174 | set => this.Set((int)WixCustomTableColumnTupleFields.Category, (int?)value); | 174 | set => this.Set((int)WixCustomTableColumnSymbolFields.Category, (int?)value); |
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | public string Set | 177 | public string Set |
| 178 | { | 178 | { |
| 179 | get => (string)this.Fields[(int)WixCustomTableColumnTupleFields.Set]; | 179 | get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.Set]; |
| 180 | set => this.Set((int)WixCustomTableColumnTupleFields.Set, value); | 180 | set => this.Set((int)WixCustomTableColumnSymbolFields.Set, value); |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | public string Description | 183 | public string Description |
| 184 | { | 184 | { |
| 185 | get => (string)this.Fields[(int)WixCustomTableColumnTupleFields.Description]; | 185 | get => (string)this.Fields[(int)WixCustomTableColumnSymbolFields.Description]; |
| 186 | set => this.Set((int)WixCustomTableColumnTupleFields.Description, value); | 186 | set => this.Set((int)WixCustomTableColumnSymbolFields.Description, value); |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | public WixCustomTableColumnModularizeType? Modularize | 189 | public WixCustomTableColumnModularizeType? Modularize |
| 190 | { | 190 | { |
| 191 | get => (WixCustomTableColumnModularizeType?)this.Fields[(int)WixCustomTableColumnTupleFields.Modularize].AsNullableNumber(); | 191 | get => (WixCustomTableColumnModularizeType?)this.Fields[(int)WixCustomTableColumnSymbolFields.Modularize].AsNullableNumber(); |
| 192 | set => this.Set((int)WixCustomTableColumnTupleFields.Modularize, (int?)value); | 192 | set => this.Set((int)WixCustomTableColumnSymbolFields.Modularize, (int?)value); |
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | public bool PrimaryKey => (this.Attributes & WixCustomTableColumnTupleAttributes.PrimaryKey) == WixCustomTableColumnTupleAttributes.PrimaryKey; | 195 | public bool PrimaryKey => (this.Attributes & WixCustomTableColumnSymbolAttributes.PrimaryKey) == WixCustomTableColumnSymbolAttributes.PrimaryKey; |
| 196 | 196 | ||
| 197 | public bool Localizable => (this.Attributes & WixCustomTableColumnTupleAttributes.Localizable) == WixCustomTableColumnTupleAttributes.Localizable; | 197 | public bool Localizable => (this.Attributes & WixCustomTableColumnSymbolAttributes.Localizable) == WixCustomTableColumnSymbolAttributes.Localizable; |
| 198 | 198 | ||
| 199 | public bool Nullable => (this.Attributes & WixCustomTableColumnTupleAttributes.Nullable) == WixCustomTableColumnTupleAttributes.Nullable; | 199 | public bool Nullable => (this.Attributes & WixCustomTableColumnSymbolAttributes.Nullable) == WixCustomTableColumnSymbolAttributes.Nullable; |
| 200 | 200 | ||
| 201 | public bool Unreal => (this.Attributes & WixCustomTableColumnTupleAttributes.Unreal) == WixCustomTableColumnTupleAttributes.Unreal; | 201 | public bool Unreal => (this.Attributes & WixCustomTableColumnSymbolAttributes.Unreal) == WixCustomTableColumnSymbolAttributes.Unreal; |
| 202 | } | 202 | } |
| 203 | } | 203 | } |
