overrides the metadata for each role RRS feed

  • Question

  • Imagine the following scenario.

    I have a table Employees (EmployeeID (PK), LastName, FistName, Phone, EmailAddress, Manager (FK to EmployeeID) and Salary).

    In my service, I want that

    • Anybody can read these informations except the salary.
    • The employee himself can read his salary and change his phone.
    • The manager or the manager of the manager (etc) can read and change the employee salary.
    • Administrators can change EmailAddress

    What is the best way to do this?

    In a first step, I did it without the ADO .Net Data Services Framework and only with WCF. I defined four DataContracts for the four cases.

    With Astoria, is it possible to do this more quickly and use directly the Entity Framework generated code?


    Friday, August 1, 2008 1:30 PM