src/Shared/EntityFramework/Core/Query/InternalTrees/OpCopier.cs
// <summary>
// Maps columns of an existing table to those of the cloned table
// </summary>
// <param name="newTable"> The original Table </param>
// <param name="oldTable"> The cloned Table </param>
Maps columns of an existing table to those of the cloned table
Maps columns of an existing table to those of the cloned table
private void MapTable(Table newTable, Table oldTable)
        {
            for (var i = 0; i < oldTable.Columns.Count; i++)
            {
                SetMappedVar(oldTable.Columns[i], newTable.Columns[i]);
            }
        }
private void MapTable ( Table newTable , Table oldTable ) { for ( var i = 0 ; i < oldTable . Columns . Count ; i ++ ) { SetMappedVar ( oldTable . Columns [ i ] , newTable . Columns [ i ] ) ; } }
Maps columns of an existing table to those of the cloned table
Maps columns of an existing table to those of the cloned table
// Map the corresponding columns of the table // Now set up the column map
newTable
Table
The original Table
The original Table
oldTable
Table
The cloned Table
The cloned Table