示例#1
0
 public void Close()
 {
     if (this.m_dataReader != null)
     {
         this.m_dataReader.Close();
         this.m_dataReader = null;
     }
     this.m_row = null;
 }
示例#2
0
 public void ResetContext()
 {
     if (this.m_dataReader == null)
     {
         this.CreateDataReader();
     }
     else if (!this.m_dataReader.MoveToFirstRow())
     {
         Global.Tracer.Trace(TraceLevel.Verbose, "OnDemandReportRendering.DataSetInstance triggered a second query execution or second chunk open for dataset: {0} in report {1}", this.m_dataSetDef.Name.MarkAsPrivate(), this.m_dataSetDef.RenderingContext.OdpContext.ReportContext.ItemPathAsString.MarkAsPrivate());
         this.Close();
         this.CreateDataReader();
     }
     this.m_row = null;
 }