Top "Datareader" questions

A DataReader reads a forward-only stream of rows from a data source.

How can I easily convert DataReader to List<T>?

I have data in a DataReader which I want to be converted to a List<T>. What is …

c# datareader generic-list
How to fill Dataset with multiple tables?

I'm trying to fill DataSet which contains 2 tables with one to many relationship. I'm using DataReader to achieve this : public …

c# sql ado.net dataset datareader
Reading a date using DataReader

I read a string using this format with a data reader. How can I read in a date using similar …

c# .net ado.net datareader
Multiples Table in DataReader

I normally use DataSet because It is very flexible. Recently I am assigned code optimization task , To reduce hits to …

c# asp.net .net sqldatareader datareader
Convert rows from a data reader into typed results

I'm using a third party library which returns a data reader. I would like a simple way and as generic …

c# list datareader
How to get a DataRow out the current row of a DataReader?

Ok, I would like to extract a DataRow out a DataReader. I have been looking around for quite some time …

c# datarow datareader
How to retrieve all fields for a given record using OracleDataReader?

My question, which is similar to this one, is how can I use OracleDataReader to retrieve all the fields for …

c# asp.net datareader
Handle DBNull in C#

Is there a better/cleaner way to do this? int stockvalue = 0; if (!Convert.IsDBNull(reader["StockValue"])) stockvalue = (int)reader["StockValue"];

c# datareader dbnull
combobox with for each loop

Hi I am a student do anybody know after populating the combobox with the database values. How to display the …

c# winforms datareader
Access a specific row in DataReader

I have a datareader to display a list of gameweeks in a js carousel. I need to be able to …

c# asp.net sqldatareader datareader