Which CommandBehavior type should you use?

You are developing an ASP.NET MVC application that displays a report. The report includes
large images that are stored in a database. Members of the EntityClient namespace are
used to access the database through the ADO.NET Entity Framework data model.
You need to prevent memory exceptions while generating a report using the
EntityDataRcader type.
Which CommandBehavior type should you use?

You are developing an ASP.NET MVC application that displays a report. The report includes
large images that are stored in a database. Members of the EntityClient namespace are
used to access the database through the ADO.NET Entity Framework data model.
You need to prevent memory exceptions while generating a report using the
EntityDataRcader type.
Which CommandBehavior type should you use?

A.
FastForwardReadOnly

B.
SequentialAccess

C.
SingleResult

D.
SingleRow

Explanation:



Leave a Reply 4

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


MN

MN

B
SequentialAccess
Provides a way for the DataReader to handle rows that contain columns with large binary values. Rather than loading the entire row, SequentialAccess enables the DataReader to load data as a stream.

Blah

Blah

Yep B is the correct answer here.

Eu

Eu

SequentialAccess

pnik

pnik

B. SequentialAccess