aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/WindowsInstaller/Rows/WixSimpleReferenceRow.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-12-07 14:17:39 -0800
committerRob Mensching <rob@firegiant.com>2017-12-07 14:17:39 -0800
commit221da62c05ef2b515eb507c77655514cd0ec32a4 (patch)
treefabec5b8ac871f17de6fe0aad3e6188b9af42bfb /src/WixToolset.Data/WindowsInstaller/Rows/WixSimpleReferenceRow.cs
parentca376995792d2e2a1a7f39760989496702a8f603 (diff)
downloadwix-221da62c05ef2b515eb507c77655514cd0ec32a4.tar.gz
wix-221da62c05ef2b515eb507c77655514cd0ec32a4.tar.bz2
wix-221da62c05ef2b515eb507c77655514cd0ec32a4.zip
Reintegrate MSI constructs into WxToolset.Data.WindowsInstaller namespace
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller/Rows/WixSimpleReferenceRow.cs')
-rw-r--r--src/WixToolset.Data/WindowsInstaller/Rows/WixSimpleReferenceRow.cs61
1 files changed, 61 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..bf7dfb0e
--- /dev/null
+++ b/src/WixToolset.Data/WindowsInstaller/Rows/WixSimpleReferenceRow.cs
@@ -0,0 +1,61 @@
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
3namespace WixToolset.Data.WindowsInstaller.Rows
4{
5 using System;
6
7 /// <summary>
8 /// Specialization of a row for the WixSimpleReference table.
9 /// </summary>
10 public sealed class WixSimpleReferenceRow : Row
11 {
12 /// <summary>
13 /// Creates a WixSimpleReferenceRow that belongs to a table.
14 /// </summary>
15 /// <param name="sourceLineNumbers">Original source lines for this row.</param>
16 /// <param name="table">Table this row belongs to and should get its column definitions from.</param>
17 public WixSimpleReferenceRow(SourceLineNumber sourceLineNumbers, Table table)
18 : base(sourceLineNumbers, table)
19 {
20 }
21
22 /// <summary>
23 /// Creates a WixSimpleReferenceRow that belongs to a table.
24 /// </summary>
25 /// <param name="sourceLineNumbers">Original source lines for this row.</param>
26 /// <param name="tableDefinitions">Table definitions for this row.</param>
27 public WixSimpleReferenceRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDefinitions)
28 : base(sourceLineNumbers, tableDefinitions)
29 {
30 }
31
32 /// <summary>
33 /// Gets or sets the primary keys of the simple reference.
34 /// </summary>
35 /// <value>The primary keys of the simple reference.</value>
36 public string PrimaryKeys
37 {
38 get { return (string)this.Fields[1].Data; }
39 set { this.Fields[1].Data = value; }
40 }
41
42 /// <summary>
43 /// Gets the symbolic name.
44 /// </summary>
45 /// <value>Symbolic name.</value>
46 public string SymbolicName
47 {
48 get { return String.Concat(this.TableName, ":", this.PrimaryKeys); }
49 }
50
51 /// <summary>
52 /// Gets or sets the table name of the simple reference.
53 /// </summary>
54 /// <value>The table name of the simple reference.</value>
55 public string TableName
56 {
57 get { return (string)this.Fields[0].Data; }
58 set { this.Fields[0].Data = value; }
59 }
60 }
61}