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

Which object holds only data and does not interact with data source?

493


What are the benefits of using of ADO.NET in .NET 4.0?

532


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

586


What is Data Provider?

564


What are all components of ADO.Net data provider?

597






What is the difference between Datareader and Dataset?

534


What is the difference between data grid and data repeater?

500


Which is faster dataset or datareader?

517


What are the main differences between classic ado and ado.net?

509


What is ado.net and its features?

493


How to copy the contents from one table to another table and how to delete the source table in ado.net?

517


Why is ADO.NET serialization slower than ADO ?

559


What is aggregate root?

489


What is the full form of ado.net?

504


Define partial class?

503