nerdexam
Microsoft

70-515 · Question #103

You are developing an ASP.NET web application. The application includes the following Entity Data Model (EDM): You instantiate an ObjectContext for the EDM named context. You need to find the total…

The correct answer is B. var query = context.Customers. See the full explanation below for the reasoning.

Question

You are developing an ASP.NET web application. The application includes the following Entity Data Model (EDM):

You instantiate an ObjectContext for the EDM named context. You need to find the total number of addresses that are associated with customers that have a non-null middle name. Which LINQ to Entities query should you use?

Exhibit

70-515 question #103 exhibit

Options

  • Avar query = context.Customers
  • Bvar query = context.Customers
  • Cvar query = context.Addresses
  • Dvar query = context.Addresses

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    81% (30)
  • C
    5% (2)
  • D
    11% (4)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice