private void SetupFieldsForNewDataSetWithoutResettingOldFieldFlags(AspNetCore.ReportingServices.ReportIntermediateFormat.DataSet dataset, bool addRowIndex, bool noRows, bool forceNewFieldsContext) { this.m_currentFields = (this.UseDataSetFieldsCache ? dataset.DataSetCore.FieldsContext : null); if (this.m_currentFields != null && this.m_currentFields.Fields.IsCollectionInitialized && !this.m_currentFields.Fields.NeedsInlineSetup && !forceNewFieldsContext) { return; } this.m_currentFields = new FieldsContext(this, dataset.DataSetCore, addRowIndex, noRows); }
public ObjectModelImpl(ObjectModelImpl copy, OnDemandProcessingContext odpContext) { this.m_odpContext = odpContext; this.m_currentFields = new FieldsContext(this); this.m_parameters = copy.m_parameters; this.m_globals = new GlobalsImpl(odpContext); this.m_user = new UserImpl(copy.m_user, odpContext); this.m_dataSets = copy.m_dataSets; this.m_dataSources = copy.m_dataSources; this.m_reportItems = null; this.m_aggregates = null; this.m_lookups = null; }
public ObjectModelImpl(OnDemandProcessingContext odpContext) { this.m_currentFields = null; this.m_parameters = null; this.m_globals = null; this.m_user = null; this.m_reportItems = null; this.m_aggregates = null; this.m_lookups = null; this.m_dataSets = null; this.m_dataSources = null; this.m_odpContext = odpContext; }
public FieldsImpl GetFieldsImplForUpdate(AspNetCore.ReportingServices.ReportIntermediateFormat.DataSet currentDataSet) { if (currentDataSet.DataSetCore != this.m_currentFields.DataSet) { if (currentDataSet.DataSetCore.FieldsContext != null && this.UseDataSetFieldsCache) { this.m_currentFields = currentDataSet.DataSetCore.FieldsContext; } else { Global.Tracer.Assert(false, "Fields collection is not setup correctly. Actual: " + this.m_currentFields.DataSet.Name.MarkAsPrivate() + " Expected: " + currentDataSet.DataSetCore.Name.MarkAsPrivate()); } } return(this.m_currentFields.Fields); }
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(); }
public void RestoreFields(FieldsContext fieldsContext) { this.m_currentFields = fieldsContext; this.m_currentFields.AttachToDataSetCache(this); }
public void SetupPageSectionDataSetFields(AspNetCore.ReportingServices.ReportIntermediateFormat.DataSet dataset) { this.m_currentFields = new FieldsContext(this, dataset.DataSetCore, false, true); this.m_currentFields.Fields.NeedsInlineSetup = true; }
public void SetupEmptyTopLevelFields() { this.m_currentFields = new FieldsContext(this); }
public SecondaryFieldsCollectionWithAutomaticRestore(ObjectModelImpl reportOM, FieldsContext fieldsContext) { this.m_reportOM = reportOM; this.m_fieldsContext = fieldsContext; }