[Mono-devel-list] How to implement SqlDataReader - HasRow .
S Umadevi
sumadevi at novell.com
Fri Mar 12 01:06:44 EST 2004
Hi
The HasRow method on SqlDataReader returns whether the DataReader has
one or more rows. But it DOES NOT read the Row. It is supposed to be
used as a mechanism to check whether Read can be called. (even though it
sounds redundant!)
Now to implement this, I will need a mechanism to peek into the
TdsPacket/buffer and still not read it into the currentRow object of
the Tds class in Mono.Tds.TdsProtocol. Because if we call a read
immediately, we need to read the CurrentRow.
This will involve significant code changes in
Mono.Data.Tds.Protocol.Tds.cs and Mono.Data.Tds.Protocol.TdsComm.cs.
This seems to be the only way to achieve the above functionality..
Should I go ahead and make the changes or is there a better way to do
this ?
Thanks
uma
More information about the Mono-devel-list
mailing list