I have a custom permissions table for my application. These permissions list whether a specific Role or user is allowed to execute a specific process in the application. What I am trying to do is pass in a string array of all the roles a user belongs to, then for each role in the list add them to the LINQ Where statement. Code Snippet Public Function GetPermissionsForRole( ByVal Roles() As String ) As IEnumerable( Of Permission) Dim p = From c In Context.Permission _ Where c.Role = True 'And c.Name
Read More...