internal bool InternalRead(bool ignoreNonFatalErrors) { bool flag; IntPtr zero = IntPtr.Zero; if (Bid.AdvancedOn) { Bid.ScopeEnter(out zero, "<sc.SqlDataReaderSmi.InternalRead|ADV> %d#", base.ObjectID); } try { if (this.FInResults()) { this._currentColumnValues = null; this._currentColumnValuesV3 = null; while (((this._currentColumnValues == null) && (this._currentColumnValuesV3 == null)) && ((this.FInResults() && (PositionState.AfterRows != this._currentPosition)) && this._eventStream.HasEvents)) { this._eventStream.ProcessEvent(this._readerEventSink); this._readerEventSink.ProcessMessagesAndThrow(ignoreNonFatalErrors); } } flag = PositionState.OnRow == this._currentPosition; } finally { if (Bid.AdvancedOn) { Bid.ScopeLeave(ref zero); } } return(flag); }
// Called when a new row arrives (ROW token) internal override void RowAvailable(ITypedGetters rowData) { if (null == _parent) { throw SQL.UnexpectedSmiEvent(UnexpectedEventType.RowAvailable); } _parent.RowAvailable(rowData); }
internal override void RowAvailable(ITypedGetters row) { if (Bid.AdvancedOn) { Bid.Trace("<sc.SqlDataReaderSmi.ReaderEventSink.RowAvailable|ADV> %d# (v2).\n", this.reader.ObjectID); } this.reader.RowAvailable(row); }
// Called when a new row arrives (ROW token) internal virtual void RowAvailable(ITypedGetters rowData) { // Obsoleting from SMI -- use end of dispose that takes an event sink instead. // Intended to be removed (along with inheriting IDisposable) prior to RTM. // Implement body with throw because there are only a couple of ways to get to this code: // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-. // 2) Server didn't implement V2- on some interface and negotiated V2-. System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); }
// Called when a new row arrives (ROW token) internal override void RowAvailable( ITypedGetters rowData ) { if (null == _parent) { throw SQL.UnexpectedSmiEvent(UnexpectedEventType.RowAvailable); } _parent.RowAvailable( rowData ); }
// Called when a new row arrives (ROW token) internal virtual void RowAvailable( ITypedGetters rowData ) { // Obsoleting from SMI -- use end of dispose that takes an event sink instead. // Intended to be removed (along with inheriting IDisposable) prior to RTM. // Implement body with throw because there are only a couple of ways to get to this code: // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-. // 2) Server didn't implement V2- on some interface and negotiated V2-. System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); }
internal virtual void RowAvailable(ITypedGetters rowData) { ADP.InternalError(ADP.InternalErrorCode.UnimplementedSMIMethod); }
private void RowAvailable(ITypedGetters row) { this._currentColumnValues = row; this._currentPosition = PositionState.OnRow; }
internal bool InternalRead(bool ignoreNonFatalErrors) { bool flag; IntPtr zero = IntPtr.Zero; if (Bid.AdvancedOn) { Bid.ScopeEnter(out zero, "<sc.SqlDataReaderSmi.InternalRead|ADV> %d#", base.ObjectID); } try { if (this.FInResults()) { this._currentColumnValues = null; this._currentColumnValuesV3 = null; while (((this._currentColumnValues == null) && (this._currentColumnValuesV3 == null)) && ((this.FInResults() && (PositionState.AfterRows != this._currentPosition)) && this._eventStream.HasEvents)) { this._eventStream.ProcessEvent(this._readerEventSink); this._readerEventSink.ProcessMessagesAndThrow(ignoreNonFatalErrors); } } flag = PositionState.OnRow == this._currentPosition; } finally { if (Bid.AdvancedOn) { Bid.ScopeLeave(ref zero); } } return flag; }