Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain the difference between an ado.net dataset and an ado recordset?

1108


What is execute scalar in ado.net?

1020


What is adodb dll?

1051


Explain what are the steps to connect to a database?

1016


Can datareader hold data from multiple tables?

1224


How can you identify whether or not any changes are made to the DataSet object since it was last loaded?

1106


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

1208


What DataReader class do in ADO.NET ?

1167


What are the data providers used in ado.net

1063


Define connection string?

1130


What is ole in vb?

952


What is shadow copy?

1024


Which control of the BindingNavigator returns the current position within the data source?

1210


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

963


What is a dynaset in access?

1109