PrepAway - Latest Free Exam Questions & Answers

You need to create a query expression to display all of…

You are developing an application in Visual Studio 2012 to display student information. The application contains
the following Entity Framework model.

The application contains a WCF data service named DirectoryService.svc.
You need to create a query expression to display all of the grades for students whose first name is “John”
How should you build the expression?

PrepAway - Latest Free Exam Questions & Answers

A.
http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName eq ‘John’ &$expand=Grades

B.
http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName eq ‘John’/Grades

C.
http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName = ‘John’ &$expand=Grades

D.
http://localhost:54946/DirectoryService.svc/Grades/Students?$filter=FirstName eq ‘John’

3 Comments on “You need to create a query expression to display all of…

      1. Bret Verdi says:

        If I take a close look to the article and answer, then ‘=’ is used to define the filter and ‘eq’ to determine the variable and value. Is this correct?




        0



        0

Leave a Reply