datareader RRS feed

  • Question

  • what is the background process while working with datareader in C#.,i

    Monday, February 11, 2013 9:33 AM


  • Below is the documentation for DataReader on the MSDN website.

    You use the Read method of the DataReader object to obtain a row from the results of the query. You can access each column of the returned row by passing the name or ordinal reference of the column to the DataReader. However, for best performance, the DataReader provides a series of methods that allow you to access column values in their native data types (GetDateTime, GetDouble, GetGuid, GetInt32, and so on). For a list of typed accessor methods, see the OleDbDataReader Class and the SqlDataReader Class. Using the typed accessor methods, when the underlying data type is known, reduces the amount of type conversion required when retrieving the column value.


    • Proposed as answer by Mike Feng Wednesday, February 13, 2013 2:10 PM
    • Marked as answer by Mike Feng Saturday, February 23, 2013 11:12 AM
    Monday, February 11, 2013 10:49 AM