Exemplo n.º 1
0
        /// <summary>
        /// Process rows and sets the paging event handler
        /// </summary>
        internal void ProcessRows(RowSet rs, FrameReader reader, ResultMetadata providedResultMetadata)
        {
            RowSetMetadata resultMetadata = null;

            // result metadata in the response takes precedence over the previously provided result metadata.
            if (ResultRowsMetadata != null)
            {
                resultMetadata = ResultRowsMetadata;
                rs.Columns     = ResultRowsMetadata.Columns;
                rs.PagingState = ResultRowsMetadata.PagingState;
            }

            // if the response has no column definitions, then SKIP_METADATA was set by the driver
            // the driver only sets this flag for bound statements
            if (resultMetadata?.Columns == null)
            {
                resultMetadata = providedResultMetadata?.RowSetMetadata;
                rs.Columns     = resultMetadata?.Columns;
            }

            for (var i = 0; i < _rowLength; i++)
            {
                rs.AddRow(ProcessRowItem(reader, resultMetadata));
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Process rows and sets the paging event handler
 /// </summary>
 internal void ProcessRows(RowSet rs, FrameReader reader)
 {
     if (_metadata != null)
     {
         rs.Columns     = _metadata.Columns;
         rs.PagingState = _metadata.PagingState;
     }
     for (var i = 0; i < _rowLength; i++)
     {
         rs.AddRow(ProcessRowItem(reader));
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Process rows and sets the paging event handler
 /// </summary>
 internal virtual void ProcessRows(RowSet rs, BEBinaryReader reader)
 {
     if (this._metadata != null)
     {
         rs.Columns     = _metadata.Columns;
         rs.PagingState = _metadata.PagingState;
     }
     for (var i = 0; i < this.RowLength; i++)
     {
         rs.AddRow(ProcessRowItem(reader));
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Process rows and sets the paging event handler
 /// </summary>
 internal void ProcessRows(RowSet rs, BEBinaryReader reader)
 {
     if (_metadata != null)
     {
         rs.Columns = _metadata.Columns;
         rs.PagingState = _metadata.PagingState;
     }
     for (var i = 0; i < this.RowLength; i++)
     {
         rs.AddRow(ProcessRowItem(reader));
     }
 }