70-516 · Question #153
You are writing a WCF data service that will be included in a large project that has many other WCF data services. Your WCF data service will provide access to a SQL server using the Entity…
Sign in or unlock 70-516 to reveal the answer and full explanation for question #153. The question stem and answer options stay visible for context.
Question
You are writing a WCF data service that will be included in a large project that has many other WCF data services. Your WCF data service will provide access to a SQL server using the Entity Framework. The EDMX file already exists in the project and is used by other services. One of the tables exposed by your service is the Contacts table, which contains the list of employees and the list of external contacts, which are denoted by the IsEmployee column that can be set to 1 or 0. You want to configure your WCF data service to return the external contacts whenever someone queries the Contacts entity set through WCF Data Services. What is the best way to solve this problem?
Options
- AModify the Contacts entity set in the EDMX file.
- BAdd a stored procedure to SQL Server and modify the EDMX file to create a function import
- CAdd a method to your WCF data service class and adorn the method with a
- DAdd a lazy loader to the WCF data service that will filter out the employees.
Unlock 70-516 to see the answer
You've previewed enough free 70-516 questions. Unlock 70-516 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.