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 is commandbuilder in ado.net?

522


What are the ado.net components?

525


What is the use of ADO.NET and XML web services?

592


Does dapper use ado.net?

593


What is the full form of ado?

512






What is a datagridview?

515


What are the disadvantages of using datalist?

507


What are the connected and disconnected modes in ado.net?

485


What provider ado.net use by default? Explain the role of data provider in ado.net? What is the role of data provider in ado.net?

536


Explain why edit is not possible in repeater?

537


Which namespaces are used for data access?

621


What are the major difference between classic ADO and ADO.NET?

517


What is DataRowCollection?

621


Explain what are acid properties?

536


What are the benefits of ADO.NET?

604