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);

댓글 없음:

댓글 쓰기

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

대학원생의 투고 지도 ④ (완결) — 논문의 수준이란 무엇인가: 사다리와 사분위, 첫 논문 전략

완결편이다. "논문 수준"이라는 말을 해부하고, 에듀테크 석사생의 첫 논문 전략으로 마친다. 학위논문과 학술지 논문은 다른 장르다 먼저 가장 흔한 혼동부터. 학위논문(thesis)은 "내가 연구를 수행할 줄 안다...