How to: Enable Roles in Open Ria Services
To configure the server project
<system.web> <authentication mode="Forms"></authentication> <roleManager enabled="true"></roleManager> </system.web><RequiresRole("Managers")> _ Public Function GetCustomers() As IQueryable(Of Customer) Return Me.ObjectContext.Customers End Function[RequiresRole("Managers")] public IQueryable<Customer> GetCustomers() { return this.ObjectContext.Customers; }
To access roles in the client project
See Also
Tasks
PreviousHow to: Enable Authentication in Open Ria ServicesNextHow to: Enable Profiles in Open Ria Services
Last updated