protected System.Data.CommandBehavior ConvertCommandBehavior(AspNetCore.ReportingServices.DataProcessing.CommandBehavior behavior) { if (AspNetCore.ReportingServices.DataProcessing.CommandBehavior.SingleResult == behavior && !this.IsConnectedToAS2005OrLater()) { return(System.Data.CommandBehavior.Default); } return((System.Data.CommandBehavior)behavior); }
public virtual AspNetCore.ReportingServices.DataProcessing.IDataReader ExecuteReader(AspNetCore.ReportingServices.DataProcessing.CommandBehavior behavior) { return(new DataReaderWrapper(this.UnderlyingCommand.ExecuteReader(this.ConvertCommandBehavior(behavior)))); }