When deciding whether your application should use a DataReader or a DataSet, you
should consider the type of functionality that your application requires. Use a
DataSet to do the following:
If you do not require the functionality provided by the DataSet, you can improve the performance of your application by using the DataReader to return your data in a forward-only, read-only fashion. Although the DataAdapter uses the DataReader to fill the contents of a DataSet, by using the DataReader you can boost performance because you will save memory that would be consumed by the DataSet, as well as avoid the processing required to create and fill the contents of the DataSet. |
4/13/2013
Choosing a DataReader or a DataSet in ADO.Net
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment