Which code segment should you use?

You are developing an ASP.NET MVC application. The application is an order processing
system that uses the ADO.NET Entity Framework against a SQL Server database. It has a
controller that loads a page that displays all orders along with customer information. Lazy
loading has been disabled.

The Order class is shown below.

You need to return the orders and customer information in a single round trip to the
database.
Which code segment should you use?

You are developing an ASP.NET MVC application. The application is an order processing
system that uses the ADO.NET Entity Framework against a SQL Server database. It has a
controller that loads a page that displays all orders along with customer information. Lazy
loading has been disabled.

The Order class is shown below.

You need to return the orders and customer information in a single round trip to the
database.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 5

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


student

student

I think its D. Because lazy loading is disabled and so include is not needed.

student

student

nevermind, i was wrong

indra

indra

answer is c

indra

indra

sorry it should A

stenly

stenly

D comes with null customers
C comes with customers not with orders(and nested customers)
B wrong syntax in include entity name
A .. only