LINQ in Action roller

Build Dynamic Linq WHERE

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...
Published Wednesday, July 23, 2008 3:11 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication