private void AssertReaderIsOpenWithData() { this.AssertReaderIsOpen(); if (!this.HasData) { throw Error.ADP_NoData(); } }
private void AssertReaderIsOpenWithData() { if (this._isClosed) { throw Error.ADP_ClosedDataReaderError(); } if (!this._currentResultSet.IsDataReady) { throw Error.ADP_NoData(); } }
private void AssertReaderIsOpenWithData() { Debug.Assert(_underlyingReader == null, "The reader wasn't initialized"); if (_isClosed) { throw Error.ADP_ClosedDataReaderError(); } if (!_currentResultSet.IsDataReady) { throw Error.ADP_NoData(); } }
private void AssertFieldIsReady(int ordinal) { if (this._isClosed) { throw Error.ADP_ClosedDataReaderError(); } if (!this._currentResultSet.IsDataReady) { throw Error.ADP_NoData(); } if (0 > ordinal || ordinal > this._currentResultSet.FieldCount) { throw new IndexOutOfRangeException(); } }
private void AssertFieldIsReady(int ordinal) { Debug.Assert(_underlyingReader == null, "The reader wasn't initialized"); if (_isClosed) { throw Error.ADP_ClosedDataReaderError(); } if (!_currentResultSet.IsDataReady) { throw Error.ADP_NoData(); } if (0 > ordinal || ordinal > _currentResultSet.FieldCount) { throw new IndexOutOfRangeException(); } }