Select from following answers:- config.SetEntitySetAccessRule("Customers", ServiceOperationRights.AllRead);

- config.SetServiceOperationAccessRule("Products", EntitySetRights.None); config.SetServiceOperationAccessRule("Orders", EntitySetRights.None);
- config.SetEntitySetAccessRule("Products", ServiceOperationRights.None); config.SetEntitySetAccessRule("Orders", ServiceOperationRights.None);
- All Above
The SetEntitySetAccessRule method sets the access rules for the specified entity set. The default configuration is to deny access to resources. When a service is initialized, the access rights must be enabled. To enable access to the Customers entities, call this method with the EntitySetRights.AllRead access. You do not need to deny access to the Products and Orders entities because it is denied by default.
The SetServiceOperationAccessRule method sets the access rules for the specified service operation.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator