J
Jehu Galeahsa
Hello:
I am currently writing a small library that will allow reading
formatted plain text files as though they were database results. I am
inheriting from DbDataReader in order to allow for the conversion
between strings and the desired type.
Originally, I was only implementing IDataReader, but am now working on
supporting the System.Data.Common classes. Unfortunately, DbDataReader
introduces two new members, GetEnumerator and HasRows. I am not really
sure how to write either of these. For instance, what is the
GetEnumerator method returning? IDataRecords? More importantly, how
can I tell whether there are records without first reading, for
HasRows?
I'd like some insight on how to implement these. Thanks!
~Travis
I am currently writing a small library that will allow reading
formatted plain text files as though they were database results. I am
inheriting from DbDataReader in order to allow for the conversion
between strings and the desired type.
Originally, I was only implementing IDataReader, but am now working on
supporting the System.Data.Common classes. Unfortunately, DbDataReader
introduces two new members, GetEnumerator and HasRows. I am not really
sure how to write either of these. For instance, what is the
GetEnumerator method returning? IDataRecords? More importantly, how
can I tell whether there are records without first reading, for
HasRows?
I'd like some insight on how to implement these. Thanks!
~Travis