diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:59:45 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:59:45 -0700 |
| commit | 2bb37beda887d120a0ddabf874ad25357101faa1 (patch) | |
| tree | c35e97b03274b86cfc9ff7fd2caeee211165a140 /src/WixToolset.Data.WindowsInstaller/Rows/WixSimpleReferenceRow.cs | |
| parent | df7413aeed3aea3425dff20ae0c8b1be3a3ab525 (diff) | |
| download | wix-2bb37beda887d120a0ddabf874ad25357101faa1.tar.gz wix-2bb37beda887d120a0ddabf874ad25357101faa1.tar.bz2 wix-2bb37beda887d120a0ddabf874ad25357101faa1.zip | |
Update to WiX Intermediate Representation
Diffstat (limited to 'src/WixToolset.Data.WindowsInstaller/Rows/WixSimpleReferenceRow.cs')
| -rw-r--r-- | src/WixToolset.Data.WindowsInstaller/Rows/WixSimpleReferenceRow.cs | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/WixToolset.Data.WindowsInstaller/Rows/WixSimpleReferenceRow.cs b/src/WixToolset.Data.WindowsInstaller/Rows/WixSimpleReferenceRow.cs new file mode 100644 index 00000000..3a2cf8f1 --- /dev/null +++ b/src/WixToolset.Data.WindowsInstaller/Rows/WixSimpleReferenceRow.cs | |||
| @@ -0,0 +1,63 @@ | |||
| 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.Rows | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.Diagnostics; | ||
| 7 | using System.Xml; | ||
| 8 | |||
| 9 | /// <summary> | ||
| 10 | /// Specialization of a row for the WixSimpleReference table. | ||
| 11 | /// </summary> | ||
| 12 | public sealed class WixSimpleReferenceRow : Row | ||
| 13 | { | ||
| 14 | /// <summary> | ||
| 15 | /// Creates a WixSimpleReferenceRow that belongs to a table. | ||
| 16 | /// </summary> | ||
| 17 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> | ||
| 18 | /// <param name="table">Table this row belongs to and should get its column definitions from.</param> | ||
| 19 | public WixSimpleReferenceRow(SourceLineNumber sourceLineNumbers, Table table) | ||
| 20 | : base(sourceLineNumbers, table) | ||
| 21 | { | ||
| 22 | } | ||
| 23 | |||
| 24 | /// <summary> | ||
| 25 | /// Creates a WixSimpleReferenceRow that belongs to a table. | ||
| 26 | /// </summary> | ||
| 27 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> | ||
| 28 | /// <param name="tableDefinitions">Table definitions for this row.</param> | ||
| 29 | public WixSimpleReferenceRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDefinitions) | ||
| 30 | : base(sourceLineNumbers, tableDefinitions) | ||
| 31 | { | ||
| 32 | } | ||
| 33 | |||
| 34 | /// <summary> | ||
| 35 | /// Gets or sets the primary keys of the simple reference. | ||
| 36 | /// </summary> | ||
| 37 | /// <value>The primary keys of the simple reference.</value> | ||
| 38 | public string PrimaryKeys | ||
| 39 | { | ||
| 40 | get { return (string)this.Fields[1].Data; } | ||
| 41 | set { this.Fields[1].Data = value; } | ||
| 42 | } | ||
| 43 | |||
| 44 | /// <summary> | ||
| 45 | /// Gets the symbolic name. | ||
| 46 | /// </summary> | ||
| 47 | /// <value>Symbolic name.</value> | ||
| 48 | public string SymbolicName | ||
| 49 | { | ||
| 50 | get { return String.Concat(this.TableName, ":", this.PrimaryKeys); } | ||
| 51 | } | ||
| 52 | |||
| 53 | /// <summary> | ||
| 54 | /// Gets or sets the table name of the simple reference. | ||
| 55 | /// </summary> | ||
| 56 | /// <value>The table name of the simple reference.</value> | ||
| 57 | public string TableName | ||
| 58 | { | ||
| 59 | get { return (string)this.Fields[0].Data; } | ||
| 60 | set { this.Fields[0].Data = value; } | ||
| 61 | } | ||
| 62 | } | ||
| 63 | } | ||
