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