public SecondaryFieldsCollectionWithAutomaticRestore SetupNewFieldsWithBackup(AspNetCore.ReportingServices.ReportIntermediateFormat.DataSet dataset, DataSetInstance dataSetInstance, AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.ChunkManager.DataChunkReader dataChunkReader)
        {
            SecondaryFieldsCollectionWithAutomaticRestore result = new SecondaryFieldsCollectionWithAutomaticRestore(this, this.m_currentFields);
            bool addRowIndex = this.m_currentFields.Fields.Count != this.m_currentFields.Fields.CountWithRowIndex;

            this.SetupFieldsForNewDataSetWithoutResettingOldFieldFlags(dataset, addRowIndex, dataSetInstance.NoRows, true);
            this.m_currentFields.UpdateDataSetInfo(dataSetInstance, dataChunkReader);
            return(result);
        }
Exemple #2
0
        internal SecondaryFieldsCollectionWithAutomaticRestore SetupNewFieldsWithBackup(Microsoft.ReportingServices.ReportIntermediateFormat.DataSet dataset, DataSetInstance dataSetInstance, Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.ChunkManager.DataChunkReader dataChunkReader)
        {
            SecondaryFieldsCollectionWithAutomaticRestore result = new SecondaryFieldsCollectionWithAutomaticRestore(this, m_currentFields);
            bool addRowIndex = m_currentFields.Fields.Count != m_currentFields.Fields.CountWithRowIndex;

            SetupFieldsForNewDataSetWithoutResettingOldFieldFlags(dataset, addRowIndex, dataSetInstance.NoRows, forceNewFieldsContext: true);
            m_currentFields.UpdateDataSetInfo(dataSetInstance, dataChunkReader);
            return(result);
        }