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

What is the difference between Response.Expires and Reponse.ExpiresAbsolute?

774


What is ado.net in vb net?

672


What are the classes in System.Data.Common Namespace?

880


What are three methods for displaying data in a syncfusion datagrid

802


What is the advantage of ado.net?

744


What is the maximum pool size in ado.net connection string?

690


Which object of ado contains datarow datacolumn collection?

694


Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?

859


Which is the best method to get two values from the database?

712


Explain how to call the sql commands asynchronously in ado.net version 2.0?

695


Is it possible to load multiple tables in a Dataset?

736


What are different layers of ADO.Net?

788


Explain the difference between ado and ado.net?

684


How to load multiple tables into a dataset?

718


What is connection in ado.net?

700