Why DataReader is Forward Only?

Answer Posted / sachin gupta

Because it inherit DbDataReader Abstract Class and
DbDataReader Abstract Inherit the IEnumerable and its give
GetEnumerator(Returns an enumerator that iterates through a
collection.)its Type IEnumerator and IEnumerator gives
MoveNext() Method so Datareader is Forward only.

Is This Answer Correct ?    25 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to identify the controls which can be used for binding data?

554


What is a datagridview?

518


What is ado asp?

516


differences between ADO and ADO.NET

574


What are the advantages and drawbacks of using ado.net?

625






What are the essential features of ado.net?

541


What is meant by executenonquery?

529


What is difference between executequery and executeupdate?

503


what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?

539


What is dataset and datatable in ado.net?

503


Explain ado.net features? Benefits? Drawbacks?

558


Explain the difference in record set and dataset?

493


What is the advantage of ado.net?

549


Define table relations?

559


What are the various methods provided by the DataSet object to generate XML?

594