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
Options
- Avar query = context.Customers
- Bvar query = context.Customers
- Cvar query = context.Addresses
- Dvar query = context.Addresses
How the community answered
(37 responses)- A3% (1)
- B81% (30)
- C5% (2)
- D11% (4)
Community Discussion
No community discussion yet for this question.
