Hello:
I am trying to understand the implementation of SqlDataReader and
ExecuteReader. I know how to use them in C#. But my real interest is to
know how those APIs themselves are written.
Say my Table has the following columns
Phone #(xxx-xxx-xxxx), Name(String), Month(1-12),
Balance(0.00-999,999.99)
Assume I have a Recordset pointing to rows of data in the format above.
My intention is to understand how are the APIs themselves implemented.
Do they create a class on demand with all the necessary
datatypes(because they know what datatypes their compiler supports
before compile time) and then go on reading from table.
Alternatively can everyting be read as a "string" ir-respective of the
format and the CASTED to respective format ?
I am not sure these are my guesses, can someone shed some light ?
Thanks.