/// <summary> /// Executes the <see cref="P:System.Data.IDbCommand.CommandText"></see> against the <see cref="P:System.Data.IDbCommand.Connection"></see> and builds an <see cref="System.Data.IDataReader"></see>. /// </summary> /// <returns> /// An <see cref="System.Data.IDataReader"></see> object. /// </returns> IDataReader IDbCommand.ExecuteReader() { _request.Session.OpenConnection(); _request.MoveNextResultMap(); return(new DataReaderDecorator(_innerDbCommand.ExecuteReader(), _request)); }
/// <summary> /// Advances the data reader to the next result, when reading the results of batch SQL statements. /// </summary> /// <returns> /// true if there are more rows; otherwise, false. /// </returns> bool IDataReader.NextResult() { _request.MoveNextResultMap(); return(_innerDataReader.NextResult()); }