PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

A.

B.

C.

D.

6 Comments on “Which code segment should you use?

  1. response says:

    impossible men sorry. ya que este maneja un metodo de entidad de relacion que permite llamar al servidor de mi base de datos trayendo la informacion de la entidad especificada y cargandola dentro de mi clase a su propiedad de navegacion. obteniendo la informacion de mi Order mas la informacion del cliente




    0



    2
  2. Miroslav Holec says:

    Answer is A. The requirement is “You need to return the orders and customer information in a single round trip to the database.” That means you want to rise just 1 SQL query (JOIN).

    C – wrong, because of explicit loading (multiple queries)
    B – wrong, because of bad include path
    D – wrong, because the lazy loading is disabled and related entity is not loaded




    3



    0

Leave a Reply