Esempio n. 1
0
        public DataSetQueryRestartPosition GetRestartPositionForDataSet(AspNetCore.ReportingServices.ReportIntermediateFormat.DataSet targetDataSet)
        {
            if (!this.m_queryRestartEnabled)
            {
                return(null);
            }
            List <RestartContext>             list  = new List <RestartContext>();
            List <RelationshipRestartContext> list2 = default(List <RelationshipRestartContext>);

            if (this.m_relationshipRestartPositions.TryGetValue(targetDataSet, out list2))
            {
                foreach (RelationshipRestartContext item in list2)
                {
                    list.Add(item);
                }
            }
            foreach (ScopeIDContext item2 in this.m_queryRestartPosition)
            {
                if (item2.MemberDefinition.DataScopeInfo.DataSet == targetDataSet && item2.RestartMode != RestartMode.Rom)
                {
                    list.Add(item2);
                }
            }
            DataSetQueryRestartPosition result = null;

            if (list.Count > 0)
            {
                result = new DataSetQueryRestartPosition(list);
            }
            return(result);
        }
 public RuntimeDataSet(AspNetCore.ReportingServices.ReportIntermediateFormat.DataSource dataSource, AspNetCore.ReportingServices.ReportIntermediateFormat.DataSet dataSet, DataSetInstance dataSetInstance, OnDemandProcessingContext odpContext, bool processRetrievedData)
     : base(dataSource, dataSet, odpContext)
 {
     this.m_dataSetInstance      = dataSetInstance;
     this.m_processRetrievedData = processRetrievedData;
     if (base.m_odpContext.QueryRestartInfo == null)
     {
         this.m_restartPosition = null;
     }
     else
     {
         this.m_restartPosition = base.m_odpContext.QueryRestartInfo.GetRestartPositionForDataSet(base.m_dataSet);
     }
 }