c# - Can you add security to an entity Property with RIA Services? -
RIA services allow you to add properties such as a domain service method: RequiresRole ("Admin"). It will automatically check whether the user who calls the method has the right protection to do this. I want to do something similar for the property on an entity. For example, in the role "manager" only users are allowed to change the "rate" property, but any user can change the "comments" property. Is this possible?
A better way of supporting security for properties is by overriding the DomainService.Query method, Make more blogs about how you will avoid loading excessive data.
Comments
Post a Comment