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?
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’
A
If I look to this article, I would say C. https://docs.microsoft.com/en-us/dotnet/framework/data/wcf/accessing-data-service-resources-wcf-data-services
Where should I use eq and where should I use ‘=’ ??
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?