Why DataReader is Forward Only?

Answer Posted / sanchit yadav

Because it inherites the IEnumerable.IEnumarble contains
the method(getenumerator) its type is IEnumerator it
returns the instance of IEnumerator that implements in a
class that contains three methods current(),movenext(),
reset().Ist call the current() than movenext() move first
tuple to last tuple in the table than call reset() than
cursor moves on the current().So,DataReader works in
forward only and Read only manner.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of using ado.net?

518


How does entity framework work?

468


What is the difference between linq and ado.net?

515


Which is faster dataset or datareader?

530


What is Data view?

566






What are the pre-requisites for connection pooling?

539


What are the essential features of ado.net?

542


How to Read, Add, Update and Delete record in Entity Framework ?

570


What are the important features of ado.net 2.0?

594


Explain the architecture of ado.net?

543


What is an ado connection?

529


Explain the difference between an ado.net dataset and an ado recordset?

537


Explain the differences between oledb sql server, oledbdotnet provider?

555


Explain ado.net features?

542


What is dataset and datatable in ado.net?

503