c# - Cannot apply indexing with [] to an expression of type 'BusSeatManagementSystem.OracleDataReader' -


enter image description here

how solve problem???

to read data columns of current row in datareader, can use getvalues(), , extract values array - objects, of database types.

object[] values; int numcolumns = thisreader.getvalues(values); //after "reading" row (int = 0; < numcolumns; i++) {     //read values[i] } 

please upvote answer if works


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -