Which type of object should you use in the method?

You need to write a method that retrieves data from a Microsoft Access 2013 database. The method
must meet the following requirements:
Be read-only.
Be able to use the data before the entire data set is retrieved.
Minimize the amount of system overhead and the amount of memory usage.
Which type of object should you use in the method?

You need to write a method that retrieves data from a Microsoft Access 2013 database. The method
must meet the following requirements:
Be read-only.
Be able to use the data before the entire data set is retrieved.
Minimize the amount of system overhead and the amount of memory usage.
Which type of object should you use in the method?

A.
DbDataReader

B.
DataContext

C.
unTyped DataSet

D.
DbDataAdapter

Explanation:
DbDataReader Class
Reads a forward-only stream of rows from a data source.



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Hans Werner

Hans Werner

The highlighted answer is wrong although the explanation is correct.

fabrizio

fabrizio

in the exam i’ve to check A or C?