Microsoft
70-516 · Question #78
You are developing a WCF data service that will expose an existing Entity Data Model (EDM). You have the following requirements: - Users must be able to read all entities that are exposed in the…
The correct answer is B. config.SetEntitySetAccessRule("*", EntitySetRights.AllRead). See the full explanation below for the reasoning.
Question
You are developing a WCF data service that will expose an existing Entity Data Model (EDM). You have the following requirements:
- Users must be able to read all entities that are exposed in the EDM.
- Users must be able to update or replace the SalesOrderHeader
entities.
- Users must be prevented from inserting or deleting the
SalesOrderHeader entities You need to ensure that the data service meets the requirements. Which code segment should you use in the Initialize method?
Options
- Aconfig.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
- Bconfig.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
- Cconfig.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
- Dconfig.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
How the community answered
(52 responses)- A4% (2)
- B83% (43)
- C12% (6)
- D2% (1)
Community Discussion
No community discussion yet for this question.