| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | |
| 3 | namespace WixToolset.Data.WindowsInstaller.Rows |
| 4 | { |
| 5 | /// <summary> |
| 6 | /// Specialization of a row for the upgrade table. |
| 7 | /// </summary> |
| 8 | public sealed class UpgradeRow : Row |
| 9 | { |
| 10 | /// <summary> |
| 11 | /// Creates an Upgrade row that belongs to a table. |
| 12 | /// </summary> |
| 13 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> |
| 14 | /// <param name="table">Table this Upgrade row belongs to and should get its column definitions from.</param> |
| 15 | public UpgradeRow(SourceLineNumber sourceLineNumbers, Table table) : |
| 16 | base(sourceLineNumbers, table) |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | public UpgradeRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDefinition) : |
| 21 | base(sourceLineNumbers, tableDefinition) |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | /// <summary> |
| 26 | /// Gets and sets the upgrade code for the row. |
| 27 | /// </summary> |
| 28 | /// <value>Upgrade code for the row.</value> |
| 29 | public string UpgradeCode |
| 30 | { |
| 31 | get { return (string)this.Fields[0].Data; } |
| 32 | set { this.Fields[0].Data = value; } |
| 33 | } |
| 34 | |
| 35 | /// <summary> |
| 36 | /// Gets and sets the version minimum for the row. |
| 37 | /// </summary> |
| 38 | /// <value>Version minimum for the row.</value> |
| 39 | public string VersionMin |
| 40 | { |
| 41 | get { return (string)this.Fields[1].Data; } |
| 42 | set { this.Fields[1].Data = value; } |
| 43 | } |
| 44 | |
| 45 | /// <summary> |
| 46 | /// Gets and sets the version maximum for the row. |
| 47 | /// </summary> |
| 48 | /// <value>Version maximum for the row.</value> |
| 49 | public string VersionMax |
| 50 | { |
| 51 | get { return (string)this.Fields[2].Data; } |
| 52 | set { this.Fields[2].Data = value; } |
| 53 | } |
| 54 | |
| 55 | /// <summary> |
| 56 | /// Gets and sets the language for the row. |
| 57 | /// </summary> |
| 58 | /// <value>Language for the row.</value> |
| 59 | public string Language |
| 60 | { |
| 61 | get { return (string)this.Fields[3].Data; } |
| 62 | set { this.Fields[3].Data = value; } |
| 63 | } |
| 64 | |
| 65 | /// <summary> |
| 66 | /// Gets and sets the attributes for the row. |
| 67 | /// </summary> |
| 68 | /// <value>Attributes for the row.</value> |
| 69 | public int Attributes |
| 70 | { |
| 71 | get { return (int)this.Fields[4].Data; } |
| 72 | set { this.Fields[4].Data = value; } |
| 73 | } |
| 74 | |
| 75 | /// <summary> |
| 76 | /// Gets and sets the remove code for the row. |
| 77 | /// </summary> |
| 78 | /// <value>Remove code for the row.</value> |
| 79 | public string Remove |
| 80 | { |
| 81 | get { return (string)this.Fields[5].Data; } |
| 82 | set { this.Fields[5].Data = value; } |
| 83 | } |
| 84 | |
| 85 | /// <summary> |
| 86 | /// Gets and sets the action property for the row. |
| 87 | /// </summary> |
| 88 | /// <value>Action property for the row.</value> |
| 89 | public string ActionProperty |
| 90 | { |
| 91 | get { return (string)this.Fields[6].Data; } |
| 92 | set { this.Fields[6].Data = value; } |
| 93 | } |
| 94 | } |
| 95 | } |