From 9787570331b511bab73ac8f4f38a3b8cfa053ca5 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Wed, 24 Jun 2020 14:05:08 -0700 Subject: The Great Tuple to Symbol Rename (tm) --- .../WindowsInstaller/TableDefinition.cs | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/WixToolset.Data/WindowsInstaller/TableDefinition.cs') diff --git a/src/WixToolset.Data/WindowsInstaller/TableDefinition.cs b/src/WixToolset.Data/WindowsInstaller/TableDefinition.cs index 214544ca..504c89ce 100644 --- a/src/WixToolset.Data/WindowsInstaller/TableDefinition.cs +++ b/src/WixToolset.Data/WindowsInstaller/TableDefinition.cs @@ -22,15 +22,15 @@ namespace WixToolset.Data.WindowsInstaller /// Creates a table definition. /// /// Name of table to create. - /// Optional tuple definition for this table. + /// Optional symbol definition for this table. /// Column definitions for the table. /// Flag if table is unreal. - /// Whether the primary key is the id of the tuple definition associated with this table. - public TableDefinition(string name, IntermediateTupleDefinition tupleDefinition, IEnumerable columns, bool unreal = false, bool tupleIdIsPrimaryKey = false, Type strongRowType = null) + /// Whether the primary key is the id of the symbol definition associated with this table. + public TableDefinition(string name, IntermediateSymbolDefinition symbolDefinition, IEnumerable columns, bool unreal = false, bool symbolIdIsPrimaryKey = false, Type strongRowType = null) { this.Name = name; - this.TupleDefinition = tupleDefinition; - this.TupleIdIsPrimaryKey = tupleIdIsPrimaryKey; + this.SymbolDefinition = symbolDefinition; + this.SymbolIdIsPrimaryKey = symbolIdIsPrimaryKey; this.Unreal = unreal; this.Columns = columns?.ToArray(); this.StrongRowType = strongRowType ?? typeof(Row); @@ -51,10 +51,10 @@ namespace WixToolset.Data.WindowsInstaller public string Name { get; } /// - /// Gets the tuple definition associated with this table. + /// Gets the symbol definition associated with this table. /// - /// The tuple definition. - public IntermediateTupleDefinition TupleDefinition { get; } + /// The symbol definition. + public IntermediateSymbolDefinition SymbolDefinition { get; } /// /// Gets if the table is unreal. @@ -69,10 +69,10 @@ namespace WixToolset.Data.WindowsInstaller public ColumnDefinition[] Columns { get; } /// - /// Gets if the primary key is the id of the tuple definition associated with this table. + /// Gets if the primary key is the id of the symbol definition associated with this table. /// /// Flag if table is unreal. - public bool TupleIdIsPrimaryKey { get; } + public bool SymbolIdIsPrimaryKey { get; } private Type StrongRowType { get; } @@ -162,9 +162,9 @@ namespace WixToolset.Data.WindowsInstaller { var empty = reader.IsEmptyElement; string name = null; - IntermediateTupleDefinition tupleDefinition = null; + IntermediateSymbolDefinition symbolDefinition = null; var unreal = false; - var tupleIdIsPrimaryKey = false; + var symbolIdIsPrimaryKey = false; Type strongRowType = null; while (reader.MoveToNextAttribute()) @@ -187,8 +187,8 @@ namespace WixToolset.Data.WindowsInstaller if (tableDefinitions.TryGet(name, out var tableDefinition)) { - tupleDefinition = tableDefinition.TupleDefinition; - tupleIdIsPrimaryKey = tableDefinition.TupleIdIsPrimaryKey; + symbolDefinition = tableDefinition.SymbolDefinition; + symbolIdIsPrimaryKey = tableDefinition.SymbolIdIsPrimaryKey; strongRowType = tableDefinition.StrongRowType; } @@ -237,7 +237,7 @@ namespace WixToolset.Data.WindowsInstaller } } - return new TableDefinition(name, tupleDefinition, columns.ToArray(), unreal, tupleIdIsPrimaryKey, strongRowType); + return new TableDefinition(name, symbolDefinition, columns.ToArray(), unreal, symbolIdIsPrimaryKey, strongRowType); } /// -- cgit v1.2.3-55-g6feb