c# - Cannot apply indexing with [] to an expression of type 'BusSeatManagementSystem.OracleDataReader' -
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
Post a Comment