Source/Providers/NFX.MySQL/MySQLCRUDScriptQueryHandler.cs
/// <summary>
/// Reads data from reader into rowset. the reader is NOT disposed
/// </summary>
Reads data from reader into rowset. the reader is NOT disposed
Reads data from reader into rowset . the reader is NOT disposed
public static Rowset PopulateRowset(MySQLCRUDQueryExecutionContext context, MySqlDataReader reader, string target, Query query, QuerySource qSource, bool oneRow)
            {
              Schema.FieldDef[] toLoad;
              Schema schema = GetSchemaForQuery(target, query, reader, qSource, out toLoad);
              var store= context.DataStore;
              var result = new Rowset(schema);
              while(reader.Read())
              {
                var row = PopulateRow(context, query.ResultRowType, schema, toLoad, reader);
                result.Add( row );
                if (oneRow) break;
              }
              return result;
            }
public static Rowset PopulateRowset ( MySQLCRUDQueryExecutionContext context , MySqlDataReader reader , string target , Query query , QuerySource qSource , bool oneRow ) { Schema . FieldDef [ ] toLoad ; Schema schema = GetSchemaForQuery ( target , query , reader , qSource , out toLoad ) ; var store = context . DataStore ; var result = new Rowset ( schema ) ; while ( reader . Read ( ) ) { var row = PopulateRow ( context , query . ResultRowType , schema , toLoad , reader ) ; result . Add ( row ) ; if ( oneRow ) break ; } return result ; }
Reads data from reader into rowset.
Reads data from reader into rowset .
context
MySQLCRUDQueryExecutionContext
reader
MySqlDataReader
target
string
query
Query
qSource
QuerySource
oneRow
bool