2012년 5월 5일 토요일

516) Exam ple 4

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?

Answer:
config.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
config.SetEntitySetAccessRule("SalesOrderHeader", EntitySetRights.WriteMerge|EntitySetRights.WriteReplace);

댓글 없음:

댓글 쓰기

국정원의 댓글 공작을 지탄합니다.

UPBIT is a South Korean company, and people died of suicide cause of coin investment.

 UPBIT is a South Korean company, and people died of suicide cause of coin. The company helps the people who control the market price manipu...