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 the difference between a datareader and a dataset?

526


What are the parameters that control most of connection pooling behaviors?

519


What is a serialized object?

544


Define ado.net?

584


What is data reader in ado.net?

510






What is ado circle?

671


How does ado.net work?

498


What is serialization and de-serialization in .net? How can we serialize the dataset object?

528


What is read only and forward only in ado.net?

525


What are the data access namespaces in .NET?

637


What is ado.net and its features?

507


How do you update database through dataset?

548


Command objects uses, purposes and their methods.

533


What are the data providers in ADO.NET framework?

600


What is sql command in ado net?

510