// 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. namespace WixToolset.Data.WindowsInstaller.Rows { using System; /// /// Specialization of a row for the WixSimpleReference table. /// public sealed class WixSimpleReferenceRow : Row { /// /// Creates a WixSimpleReferenceRow that belongs to a table. /// /// Original source lines for this row. /// Table this row belongs to and should get its column definitions from. public WixSimpleReferenceRow(SourceLineNumber sourceLineNumbers, Table table) : base(sourceLineNumbers, table) { } /// /// Creates a WixSimpleReferenceRow that belongs to a table. /// /// Original source lines for this row. /// Table definitions for this row. public WixSimpleReferenceRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDefinitions) : base(sourceLineNumbers, tableDefinitions) { } /// /// Gets or sets the primary keys of the simple reference. /// /// The primary keys of the simple reference. public string PrimaryKeys { get { return (string)this.Fields[1].Data; } set { this.Fields[1].Data = value; } } /// /// Gets the symbolic name. /// /// Symbolic name. public string SymbolicName { get { return String.Concat(this.TableName, ":", this.PrimaryKeys); } } /// /// Gets or sets the table name of the simple reference. /// /// The table name of the simple reference. public string TableName { get { return (string)this.Fields[0].Data; } set { this.Fields[0].Data = value; } } } }