public void Initialize(DataSetDefinition dataSetDefinition)
        {
            int size = 0;

            if (dataSetDefinition.DataSetCore != null && dataSetDefinition.DataSetCore.Query != null && dataSetDefinition.DataSetCore.Query.Parameters != null)
            {
                size = dataSetDefinition.DataSetCore.Query.Parameters.Count;
            }
            this.m_parameters = new ParametersImpl(size);
            this.InitializeGlobalAndUserCollections();
            this.m_currentFields = new FieldsContext(this, dataSetDefinition.DataSetCore);
            this.m_dataSources   = new DataSourcesImpl(0);
            this.m_dataSets      = new DataSetsImpl(0);
            this.m_variables     = new VariablesImpl(false);
            this.m_aggregates    = new AggregatesImpl(false, this.m_odpContext);
            this.m_reportItems   = new ReportItemsImpl(false);
            this.m_lookups       = new LookupsImpl();
        }
        public void Initialize(AspNetCore.ReportingServices.ReportIntermediateFormat.Report report, AspNetCore.ReportingServices.ReportIntermediateFormat.ReportInstance reportInstance)
        {
            int size = 0;

            if (report.Parameters != null)
            {
                size = report.Parameters.Count;
            }
            this.m_parameters = new ParametersImpl(size);
            this.InitializeGlobalAndUserCollections();
            this.m_currentFields = new FieldsContext(this);
            this.m_dataSources   = new DataSourcesImpl(report.DataSourceCount);
            this.m_dataSets      = new DataSetsImpl(report.DataSetCount);
            this.InitOrUpdateDataSetCollection(report, reportInstance, true);
            this.m_variables   = new VariablesImpl(false);
            this.m_aggregates  = new AggregatesImpl(false, this.m_odpContext);
            this.m_reportItems = new ReportItemsImpl(false);
            this.m_lookups     = new LookupsImpl();
        }