¡@

Home 

c# Programming Glossary: datareader

What's better: DataSet or DataReader?

http://stackoverflow.com/questions/1083193/whats-better-dataset-or-datareader

better DataSet or DataReader I just saw this topic http stackoverflow.com questions 2250.. wasn't the best method to do .. So should I 'learn' DataReader or keep using DataSet DataTable What are the pros cons c# asp.net.. needs. One of the most important differences is that a DataReader will retain an open connection to your database until you're..

When reading a CSV file using a DataReader and the OLEDB Jet data provider, how can I control column data types?

http://stackoverflow.com/questions/115658/when-reading-a-csv-file-using-a-datareader-and-the-oledb-jet-data-provider-how

reading a CSV file using a DataReader and the OLEDB Jet data provider how can I control column data.. with the command select from Data.csv When I open an OleDbDataReader and examine the data types of the columns it returns I find.. 12a Evergreen Terrace Springfield Calling the OleDbDataReader.GetDataTypeName method for the House column will reveal that..

how to get number of rows using SqlDataReader in C#

http://stackoverflow.com/questions/1383315/how-to-get-number-of-rows-using-sqldatareader-in-c-sharp

to get number of rows using SqlDataReader in C# my question is about how to get number of rows using.. my question is about how to get number of rows using SqlDataReader in C# . I've seen some answers around the net about this but.. SELECT COUNT query beforehand. Going twice through the DataReader loop is really expensive you have to re execute the query. And..

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

http://stackoverflow.com/questions/1464883/how-can-i-easily-convert-datareader-to-listt

can I easily convert DataReader to List T duplicate This question already has an answer here.. into typed results 3 answers I have data in a DataReader which I want to be converted to a List T . What is a possible.. class I have CustomerId and CustomerName properties.If my DataReader returns these two columns as data then how can I convert it..

SqlDataAdapter vs SqlDataReader

http://stackoverflow.com/questions/1676753/sqldataadapter-vs-sqldatareader

vs SqlDataReader What are the differences between using SqlDataAdapter vs SqlDataReader.. are the differences between using SqlDataAdapter vs SqlDataReader for getting data from a DB I am specifically looking into their.. Thanks c# .net share improve this question SqlDataReader Holds the connection open until you are finished don't forget..

Mocking a DataReader and getting a Rhino.Mocks.Exceptions.ExpectationViolationException: IDisposable.Dispose(); Expected #0, Actual #1

http://stackoverflow.com/questions/1792984/mocking-a-datareader-and-getting-a-rhino-mocks-exceptions-expectationviolationex

a DataReader and getting a Rhino.Mocks.Exceptions.ExpectationViolationException.. Expected #0 Actual #1 I'm trying to mock a SqlDataReader SqlDataReader reader mocks.CreateMock SqlDataReader Expect.Call.. #0 Actual #1 I'm trying to mock a SqlDataReader SqlDataReader reader mocks.CreateMock SqlDataReader Expect.Call reader.Read..

Using MySQLConnection in C# does not close properly

http://stackoverflow.com/questions/5567097/using-mysqlconnection-in-c-sharp-does-not-close-properly

using DatabaseManager db new DatabaseManager using MySqlDataReader result db.DataReader SELECT FROM module WHERE Active 1 ORDER.. db new DatabaseManager using MySqlDataReader result db.DataReader SELECT FROM module WHERE Active 1 ORDER BY Sequence ASC foreach.. module WHERE Active 1 ORDER BY Sequence ASC foreach MySqlDataReader result in db.DataReader SELECT FROM module WHERE Active 1 ORDER..

Return DataReader from DataLayer in Using statement

http://stackoverflow.com/questions/850065/return-datareader-from-datalayer-in-using-statement

DataReader from DataLayer in Using statement We have a lot of data layer.. for large sets. I'd like to be able to take advantage of a DataReader's ability to only keep one record in ram at a time but if I.. only keep one record in ram at a time but if I return the DataReader directly the connection is cut off when leaving the using block...

Incremental JSON Parsing in C#

http://stackoverflow.com/questions/9026508/incremental-json-parsing-in-c-sharp

to use JSON.net it has a JsonReader that acts much like a DataReader . using var jsonReader new JsonTextReader myTextReader while..

Multiples Table in DataReader

http://stackoverflow.com/questions/12969318/multiples-table-in-datareader

be much appreciated. I need to read multiple tables using datareader is this possible c# asp.net .net sqldatareader datareader .. using datareader is this possible c# asp.net .net sqldatareader datareader share improve this question Try this because.. datareader is this possible c# asp.net .net sqldatareader datareader share improve this question Try this because this will close..

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

http://stackoverflow.com/questions/1464883/how-can-i-easily-convert-datareader-to-listt

then how can I convert it into List CustomerEntity . c# datareader generic list share improve this question I have seen systems..

Handle DBNull in C#

http://stackoverflow.com/questions/2433155/handle-dbnull-in-c-sharp

reader StockValue stockvalue int reader StockValue c# datareader dbnull share improve this question The shortest IMHO is..

What does “opening a connection” actually mean?

http://stackoverflow.com/questions/3845764/what-does-opening-a-connection-actually-mean

was created with CommandBehavior.CloseConnection then that datareader obtains ownership of the RealConnection . When you call Close..

What is the difference between null and System.DBNull.Value?

http://stackoverflow.com/questions/4958379/what-is-the-difference-between-null-and-system-dbnull-value

Id While I retrieve data from the database using a sql datareader though there is no value returned if rdr Id null returned true..

Return DataReader from DataLayer in Using statement

http://stackoverflow.com/questions/850065/return-datareader-from-datalayer-in-using-statement

row at a time . I realized I don't really care that it's a datareader as long as I can enumerate it row by row. That lead me to this..

How to efficiently write to file from SQL datareader in c#?

http://stackoverflow.com/questions/9055521/how-to-efficiently-write-to-file-from-sql-datareader-in-c

to efficiently write to file from SQL datareader in c# I have a remote sql connection in C# that needs to execute.. has to be a much better way of doing it Thanks. c# sqldatareader writetofile share improve this question You are on the right..