Which code segment should you use?

You are developing an order processing application that uses the Entity Framework against a SQL Server database. Lazy loading has been disabled. The application displays orders and their associated order details. Order details are filtered based on the category of the product in each order.

You need to return orders with their filtered list of order details included in a single round trip to the database.
Which code segment should you use?
A.

B.

C.

D.

microsoft-exams

2 thoughts on “Which code segment should you use?

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.