src/Shared/EntityFramework/Core/Query/ResultAssembly/BridgeDataReaderFactory.cs
// <summary>
// The primary factory method to produce the BridgeDataReader; given a store data
// reader and a column map, create the BridgeDataReader, hooking up the IteratorSources
// and ResultColumn Hierarchy.  All construction of top level data readers go through
// this method.
// </summary>
// <param name="columnMap"> column map of the first result set </param>
// <param name="nextResultColumnMaps"> enumerable of the column maps for NextResult() calls. </param>
The primary factory method to produce the BridgeDataReader; given a store data
reader and a column map, create the BridgeDataReader, hooking up the IteratorSources
and ResultColumn Hierarchy.  All construction of top level data readers go through
this method.
The primary factory method to produce the BridgeDataReader ; given a store data reader and a column map create the BridgeDataReader hooking up the IteratorSources and ResultColumn Hierarchy . All construction of top level data readers go through this method .
public virtual DbDataReader Create(
            DbDataReader storeDataReader, ColumnMap columnMap, MetadataWorkspace workspace, IEnumerable<ColumnMap> nextResultColumnMaps)
        {
            DebugCheck.NotNull(storeDataReader);
            DebugCheck.NotNull(columnMap);
            DebugCheck.NotNull(workspace);
            DebugCheck.NotNull(nextResultColumnMaps);
            var shaperInfo = CreateShaperInfo(storeDataReader, columnMap, workspace);
            DbDataReader result = new BridgeDataReader(
                shaperInfo.Key, shaperInfo.Value,  0,
                GetNextResultShaperInfo(storeDataReader, workspace, nextResultColumnMaps).GetEnumerator());
            return result;
        }
public virtual DbDataReader Create ( DbDataReader storeDataReader , ColumnMap columnMap , MetadataWorkspace workspace , IEnumerable < ColumnMap > nextResultColumnMaps ) { DebugCheck . NotNull ( storeDataReader ) ; DebugCheck . NotNull ( columnMap ) ; DebugCheck . NotNull ( workspace ) ; DebugCheck . NotNull ( nextResultColumnMaps ) ; var shaperInfo = CreateShaperInfo ( storeDataReader , columnMap , workspace ) ; DbDataReader result = new BridgeDataReader ( shaperInfo . Key , shaperInfo . Value , 0 , GetNextResultShaperInfo ( storeDataReader , workspace , nextResultColumnMaps ) . GetEnumerator ( ) ) ; return result ; }
The primary factory method to produce the BridgeDataReader; given a store data
reader and a column map, create the BridgeDataReader, hooking up the IteratorSources
and ResultColumn Hierarchy.
The primary factory method to produce the BridgeDataReader ; given a store data reader and a column map create the BridgeDataReader hooking up the IteratorSources and ResultColumn Hierarchy .
/*depth:*/
storeDataReader
DbDataReader
columnMap
ColumnMap
column map of the first result set
column map of the first result set
workspace
MetadataWorkspace
nextResultColumnMaps
IEnumerable<ColumnMap>
enumerable of the column maps for NextResult() calls.
enumerable of the column maps for NextResult () calls .